Can we have an ‘Update metadata’ button in Image Gallery for all image instances?

This is the screen you’re referring to: That interface is a modal dialog created using javascript. Specifically, backbone.js. Internally WordPress stores files in the file system and creates a post for them of type attachment. This attachment post stores the title, caption and other information. Because of this, it’s possible to have comments on an … Read more

How to Get Current Custom Post Type Associated Taxonomy Term

// First, get associated taxonomies of the post/object. $object_taxonomies = get_object_taxonomies( get_post() ); // Next, get associated terms of the post/object. $object_terms = wp_get_object_terms( get_the_ID(), $object_taxonomies ); $terms = array(); // returned object terms could be WP_Error, so check that first. if( ! is_wp_error($object_terms) && is_array($object_terms) ) { foreach( $object_terms as $object_term ) { // … Read more

do_action() hook into load-(page)

I have changed the do_action() for a apply_filter(). This worked as follows: // Filter save settings $settings = apply_filters( ‘gtp_theme_settings_tab_save’, $settings, $tab, $_POST ); $updated = update_option( ‘gtp_theme_settings’, $settings ); And then my add_filter in plugin file looks like: function ac_theme_settings_tab_save( $settings, $tab, $postdata ) { if( $tab == ‘adcalls’ ) { $settings[‘gtp_adcalls_domain_id’] = $postdata[‘gtp_adcalls_domain_id’]; … Read more