Is There a WordPress Hook to Filter the Edit Posts View?
You need a to use a few hooks for that take a look at mike’s answer to a similar question. Hope this Helps
You need a to use a few hooks for that take a look at mike’s answer to a similar question. Hope this Helps
You cannot do a sort on the attachment meta data specifically because it’s stored in a serialized string. Whilst WP_Query can sort on meta values it can’t sort on data that’s serialized. For example wp_get_attachment_metadata fetches and unserializes that for you inside the column callback, but MySQL queries can’t sort on that type of data. … Read more
Yes, it is possible to remove the custom colors option from tinyMCE. WordPress bundles a tinyMCE plugin to handle the custom colors functionality. The tiny_mce_plugins filter can be used to remove this bundled plugin which is identified by the key colorpicker. Note that removing the custom colors option will not affect users’ ability to select … Read more
Add this to your functions.php file: function jpb_unregister_widgets(){ unregister_widget(‘WP_Widget_Pages’); unregister_widget(‘WP_Widget_Calendar’); unregister_widget(‘WP_Widget_Archives’); unregister_widget(‘WP_Widget_Links’); unregister_widget(‘WP_Widget_Meta’); unregister_widget(‘WP_Widget_Search’); unregister_widget(‘WP_Widget_Text’); unregister_widget(‘WP_Widget_Categories’); unregister_widget(‘WP_Widget_Recent_Posts’); unregister_widget(‘WP_Widget_Recent_Comments’); unregister_widget(‘WP_Widget_RSS’); unregister_widget(‘WP_Widget_Tag_Cloud’); unregister_widget(‘WP_Nav_Menu_Widget’); } add_action( ‘widgets_init’, ‘jpb_unregister_widgets’ ); This will get rid of all default widgets. If you want to keep a certain widget, remove that line from the function above.
Trying to simulate the issue, it happened the same (wp-admin/submenu_slug), and the solution is to add a priority value in the hook admin_menu. Here, I’m adding a sub menu to the plugin BackWPup. Note the priority 11: add_action(‘admin_menu’, ‘third_party_submenu_wpse_91377’, 11 ); function third_party_submenu_wpse_91377() { add_submenu_page( ‘backwpup’, // Third party plugin Slug ‘My plugin’, ‘My plugin’, … Read more
I’ve been searching around for the same answer to your question and running into the exact same issues, and really appreciate your thorough research. I’m definitely +1 here for proposing this addition! To attempt to answer 2) – I don’t think there’s a good reason to exclude it. I think WordPress’s taxonomy terms are woefully … Read more
Background: The reason why filtering with dynamic_sidebar_params doesn’t work with HTML is because WordPress strips HTML from Widget Heading in wp_widget_control() function like this: $widget_title = esc_html( strip_tags( $sidebar_args[‘widget_name’] ) ); WordPress also strips HTML in default JavaScript in wp-admin/js/widgets.js So without a customised solution, there is no default filter or option either with PHP … Read more
Solution 1 Here’s a solution that uses pre_get_posts action to override the original search query and search by post ID instead. This is the approach that I would generally recommend. /** * Allows posts to be searched by ID in the admin area. * * @param WP_Query $query The WP_Query instance (passed by reference). */ … Read more
I’d suggest disabling script concatenation and/or compression to see if that helps. You can do this by adding the following to the wp-config.php file: define( ‘CONCATENATE_SCRIPTS’, false ); define( ‘COMPRESS_SCRIPTS’, false ); And maybe even script debugging to.. define( ‘SCRIPT_DEBUG’, true ); Are you using any caching plugins? EDIT: The most common reason for seeing … Read more
If you’re using multisite, there’s a plugin you can network activate to disable the welcome panel on all new sites. It’s aptly named “Hide Welcome Panel for Multisite.” If you just want to do this for a typical (single site) installation, it’s also pretty easy. The welcome screen is shown for a user if a … Read more