WordPress filter hook

pb_settings_filter_users

Fired by 5 WordPress plugins, running on 3,620+ sites between them.

How to use pb_settings_filter_users

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( 'pb_settings_filter_users', function( $user_array ) {
	// Change $user_array here.
	return $user_array;
}, 10, 1 );

Argument names come from wpsection's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

5 plugins that fire pb_settings_filter_users

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

  1. wpsection icon wpsection3,000+ installs apply_filters( 'pb_settings_filter_users', $user_array ) plugin/dashboard/class-wps-settings.php:1500
  2. Slider Path for Elementor icon Slider Path for Elementor600+ installs apply_filters( 'pb_settings_filter_users', $user_array ) includes/classes/class-pb-settings.php:1420
  3. Easy Events Manager icon Easy Events Manager10+ installs apply_filters( 'pb_settings_filter_users', $user_array ) includes/classes/class-pb-settings.php:1360
  4. Daily Attendance icon Daily Attendance10+ installs apply_filters( 'pb_settings_filter_users', $user_array ) includes/class-pb-settings.php:1335
  5. Element Path for Elementor icon Element Path for ElementorFewer than 10 installs apply_filters( 'pb_settings_filter_users', $user_array ) includes/classes/class-pb-settings.php:1506

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.