screen_options_show_submit
Filters whether to show the Screen Options submit button.
Usage
add_filter( 'screen_options_show_submit', 'wp_kama_screen_options_show_submit_filter', 10, 2 ); /** * Function for `screen_options_show_submit` filter-hook. * * @param bool $show_button Whether to show Screen Options submit button. * @param WP_Screen $screen Current WP_Screen instance. * * @return bool */ function wp_kama_screen_options_show_submit_filter( $show_button, $screen ){ // filter... return $show_button; }
- $show_button(true|false)
- Whether to show Screen Options submit button.
Default: false - $screen(WP_Screen)
- Current WP_Screen instance.
Changelog
Since 4.4.0 | Introduced. |
Where the hook is called
screen_options_show_submit
wp-admin/includes/class-wp-screen.php 1092
$show_button = apply_filters( 'screen_options_show_submit', false, $this );
Where the hook is used in WordPress
wp-admin/includes/class-wp-screen.php 1274
add_filter( 'screen_options_show_submit', '__return_true' );
wp-admin/includes/class-wp-screen.php 1328
add_filter( 'screen_options_show_submit', '__return_true' );