WordPress filter hook

acf/get_options_pages

Fired by 6 WordPress plugins, running on 100K+ sites between them.

How to use acf/get_options_pages

It's a filter: your callback receives the value, and must return the (changed) value. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_filter( 'acf/get_options_pages', function( $pages ) {
	// Change $pages here.
	return $pages;
}, 10, 1 );

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.

6 plugins that fire acf/get_options_pages

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. Secure Custom Fields icon Secure Custom Fields100,000+ installs apply_filters( 'acf/get_options_pages', $pages ) includes/class-acf-options-page.php:484
  2. WPScreens icon WPScreens300+ installs apply_filters( 'acf/get_options_pages', $pages ) includes/acf/pro/options-page.php:505
  3. Flexblocks icon Flexblocks80+ installs apply_filters( 'acf/get_options_pages', $pages ) inc/acf/pro/options-page.php:498
  4. Option Page Addon For ACF icon Option Page Addon For ACF60+ installs apply_filters( 'acf/get_options_pages', $pages ) admin/options-page.php:515
  5. Coronavirus (COVID-19) Live Update Popup icon Coronavirus (COVID-19) Live Update Popup10+ installs apply_filters( 'acf/get_options_pages', $pages ) includes/acf/pro/options-page.php:515
  6. NavThemes Gutenberg Blocks icon NavThemes Gutenberg BlocksFewer than 10 installs apply_filters( 'acf/get_options_pages', $pages ) admin/pro/options-page.php:515

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.