Hide admin notices/notifications from everyone but super admin?
Try this code in your custom plugin which is better to activate for the network. if ( !is_super_admin() ) { remove_all_actions(‘admin_notices’); }
Try this code in your custom plugin which is better to activate for the network. if ( !is_super_admin() ) { remove_all_actions(‘admin_notices’); }
Don’t edit core WP files. Use the provided filters instead. For instance, have a look at the manage_$posttype_posts_columns filter.
Very simple : if you use the default template, rename it folder name and css file declaration) and it won’t be updated. If you want the updates (for instance the Twenty One is often updated), create a child theme. Infos here : http://codex.wordpress.org/Child_Themes
I couldn’t find a built in ACF way of doing this. Instead, in my block’s PHP render function I added printf( “<script>window.jQuery(window).trigger(‘acf/loaded/block-name’);</script>” ); This uses jQuery as an event bus to trigger an event when the block is rendered. You might need to include a check that you’re in the admin so the event won’t … Read more
The simplest way to disable edit shortcuts without unwanted side effects is to no-op override the JS function that generates them in the first place. You can do this from PHP as follows: add_action( ‘wp_enqueue_scripts’, function () { $js=”wp.customize.selectiveRefresh.Partial.prototype.createEditShortcutForPlacement = function() {};”; wp_add_inline_script( ‘customize-selective-refresh’, $js ); } ); This will work for any theme.
I think you know this one : http://core.trac.wordpress.org/ticket/12865 Someone posting here is I believe involved in google: wpengine.com (i can only post 1 link) who offers one-click staging
As far as I know there is no easy way to do that. The only way I’ve seen so far is customizing WP and BBPress themes to match. For example http://themehybrid.com/ (WordPress) and http://themehybrid.com/support/ (BBPress).
if ( get_option( ‘my_setting’ ) === false ) // Nothing yet saved update_option( ‘my_setting’, ‘default_stuff’ );
I found the answer here. Add to functions.php the following function and hook: function sgr_show_current_cat_on_single($output) { global $post; if( is_single() ) { $categories = wp_get_post_categories($post->ID); foreach( $categories as $catid ) { $cat = get_category($catid); // Find cat-item-ID in the string if(preg_match(‘#cat-item-‘ . $cat->cat_ID . ‘#’, $output)) { $output = str_replace(‘cat-item-‘.$cat->cat_ID, ‘cat-item-‘.$cat->cat_ID . ‘ current-cat’, $output); … Read more
I can’t speak to SOAP specifically, but I did build a plugin (private) for a client once that had to communicate with a proprietary third-party web service. In this case, it was a non-RESTful interface which used a mix of querystrings and XML POST requests for submitting queries (depending on the complexity of the type … Read more