New answers tagged

2

You could try to "hijack" the following filter in the WP_List_Table class: /** * Filter the list of available list table views. * * The dynamic portion of the hook name, `$this->screen->id`, refers * to the ID of the current screen, usually a string. * * @since 3.5.0 * * @param array $views An array of available list table views. */ $views = ...


2

You can do it with JavaScript. add_action( 'all_admin_notices', function(){ echo '<script>jQuery(document).ready(function($) { $( "<p>Greetings from <strong>all_admin_notices</strong>!</p>" ).insertAfter( ".subsubsub" );});</script>'; } );


0

If there is more than 1-2 meta related to your custom post type, the possibility (or necessity) of complex user searches based on that custom data, then custom table. Otherwise complex JOINs done on meta tables to pull posts by querying 2-3 criterion at the same time on meta table will slow the site down. Considerably, based on concurrent users. If you have ...


1

You should consider the POST request method for your action. Otherwise you might try to hijack the set_url_scheme filter with: add_filter( 'set_url_scheme', 'wpse_remove_arg' ); function wpse_remove_arg( $url ) { return remove_query_arg( 'do_action_xyz', $url ); } Then you could try to narrow the scope and only run this on the corresponding table ...



Top 50 recent answers are included