screen_options_show_submit

Filters whether to show the Screen Options submit button.

Description

apply_filters( 'screen_options_show_submit', (bool) $false, (WP_Screen) $instance ); 

Parameters (2)

0. $false (bool) => false
Whether to show Screen Options submit button. Default false.
1. $instance (WP_Screen)
Current WP_Screen instance.

Usage

To run the hook, copy the example below.
  1. $false = apply_filters( 'screen_options_show_submit', $false, $instance ); 
  2.  
  3. if ( !empty( $false ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the screen_options_show_submit callback 
  2. function filter_screen_options_show_submit( $false, $instance ) { 
  3. // make filter magic happen here... 
  4. return $false
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'screen_options_show_submit', 'filter_screen_options_show_submit', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'screen_options_show_submit', 'filter_screen_options_show_submit', 10, 2 ); 

Defined (3)

The filter is defined in the following location(s).

/wp-admin/includes/class-wp-screen.php  
  1. $show_button = apply_filters( 'screen_options_show_submit', false, $this ); 
  1. add_filter( 'screen_options_show_submit', '__return_true' ); 
  1. add_filter( 'screen_options_show_submit', '__return_true' );