WordPress filter hook
acf/get_options_page
Fired by 7 WordPress plugins, running on 100K+ sites between them.
How to use acf/get_options_page
It's a filter: your callback receives the value and 1 more argument, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'acf/get_options_page', function( $page, $slug ) {
// Change $page here.
return $page;
}, 10, 2 );Argument names come from Secure Custom Fields's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
7 plugins that fire acf/get_options_page
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Secure Custom Fields100,000+ installs
apply_filters( 'acf/get_options_page', $page, $slug )includes/class-acf-options-page.php:373 -
WPScreens300+ installs
apply_filters( 'acf/get_options_page', $page, $slug )includes/acf/pro/options-page.php:404 -
Flexblocks80+ installs
apply_filters( 'acf/get_options_page', $page, $slug )inc/acf/pro/options-page.php:403 -
Option Page Addon For ACF60+ installs
apply_filters( 'acf/get_options_page', $page, $slug )admin/options-page.php:414 -
Coronavirus (COVID-19) Live Update Popup10+ installs
apply_filters( 'acf/get_options_page', $page, $slug )includes/acf/pro/options-page.php:414 -
Contact Form 7 AnalyticsFewer than 10 installs
apply_filters( 'acf/get_options_page', $page, $slug )acf/pro/api/api-options-page.php:129 -
NavThemes Gutenberg BlocksFewer than 10 installs
apply_filters( 'acf/get_options_page', $page, $slug )admin/pro/options-page.php:414
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.