Filter: um_extend_account_settings

apply_filters( 'um_extend_account_settings', $um_account_settings ) → {array}

Filters data array for localize wp-admin Gutenberg scripts for account block.

Parameters:
Name Type Description
$um_account_settings array

Data to localize.

Since:
  • 2.6.1
Source:
Returns:

Data to localize.

Type
array
Example

Add `my_custom_variable` to wp-admin blocks shortcodes scripts to be callable via `um_account_settings.my_custom_variable` in JS.

function um_custom_extend_account_settings( $um_account_settings ) {
    return $um_account_settings;
}
add_filter( 'um_extend_account_settings', 'um_custom_extend_account_settings' );