fc_enable_compat_theme_edit_address_style_{theme_slug}
Type: Filter
Filters whether to enqueue a theme compatibility stylesheet on the account edit-address screen.
The dynamic portion of the hook name, $theme_slug, refers to the active theme directory name from get_template() or get_stylesheet(). Return boolean true to enqueue the stylesheet. Any other value skips it.
Signature
apply_filters( 'fc_enable_compat_theme_edit_address_style_{theme_slug}', $value );
Parameters
| Name | Type | Description |
|---|---|---|
$value | bool | Value to filter. Default true. |
Since
3.1.6
Source: inc/enqueue.php
Examples
In fc_enable_compat_theme_edit_address_style_{theme_slug}, twentytwentyfive replaces {theme_slug}.
add_filter( 'fc_enable_compat_theme_edit_address_style_twentytwentyfive',
/**
* Disable edit address theme style compatibility.
*
* @param bool $value Value to filter. Default true.
* @return bool Filtered value.
*/
function( $value ) {
return false;
},
10
);