WordPress add_filter return ture shortcut

12. novembris, 2019

Add filter to return only value true.

Instead of passing in callback function which return true, you can use this shortcut

PHP
add_filter('screen_options_show_submit', '__return_true');