How to add Edit | Delete button on rows?

Based on your code, you don’t have a column called ‘name’. Method column_name will display column content for the column ‘name’. So, for instance, you have the column called ‘madonhang’. Method for that column will be called ‘column_madonhang’. Each column has own method with the similar name.

How can i change an image’s author?

You can use wp_update_post() $my_post = array( ‘ID’ => $post_id, ‘post_author’ => $user_id, ); wp_update_post( $my_post ); Or change image’s author via a function using GravityForms uploader add_action(“gform_user_registered”, “image_author”, 10, 4); function image_author($user_id, $config, $entry, $user_pass) { $post_id = $entry[“post_id”]; $args = array( ‘post_parent’ => $post_id, ‘post_type’ => ‘attachment’, ‘post_mime_type’ => ‘image’ ); $attachments = … Read more

Is it possible to filter the wp_footer() scripts, read the content, and insert them inline?

For scripts you can use the script_loader_tag filter, which is run right before the script tag is output. It filters the HTML <script> tag, but it also passes the handle and URL that you can use to extract the contents and replace the script tag with a version that has the script inline: function wpse_292955_inline_script( … Read more

register_activation_hook in mu-plugin not triggering

MU plugins don’t ‘activate’, or ‘deactivate’. They’re just present or not present. So you’ll need a different approach. One option would be to just perform your activation functions on init, and store a record in the database to say whether or not it’s already been done: function activate_mjmc_core() { if ( ‘1’ === get_option( ‘mjmc_activated’ … Read more