enable_edit_any_user_configuration
The WordPress Core enable edit any user configuration hook.
Description
Parameters (1)
- 0. $true (bool) =>
true
- The true.
Usage
- To run the hook, copy the example below.
- $true = apply_filters( 'enable_edit_any_user_configuration', $true );
- if ( !empty( $true ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the enable_edit_any_user_configuration callback
- function filter_enable_edit_any_user_configuration( $true ) {
- // make filter magic happen here...
- return $true;
- };
- // add the filter
- add_filter( 'enable_edit_any_user_configuration', 'filter_enable_edit_any_user_configuration', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'enable_edit_any_user_configuration', 'filter_enable_edit_any_user_configuration', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /wp-admin/user-edit.php
- && ! apply_filters( 'enable_edit_any_user_configuration', true )