Skip to main content

fc_enable_compat_theme_account_style_{theme_slug}

Type: Filter

Filters whether to enqueue a theme compatibility stylesheet on customer account screens.

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_account_style_{theme_slug}', $value );

Parameters​

NameTypeDescription
$valueboolValue to filter. Default true.

Since​

  • 3.1.9

Source: inc/enqueue.php

Examples​

In fc_enable_compat_theme_account_style_{theme_slug}, twentytwentyfive replaces {theme_slug}.

add_filter( 'fc_enable_compat_theme_account_style_twentytwentyfive',
/**
* Disable account details theme style compatibility.
*
* @param bool $value Value to filter. Default true.
* @return bool Filtered value.
*/
function( $value ) {
return false;
},
10
);