开发者 | ediamin |
---|---|
更新时间 | 2024年11月16日 17:30 |
PHP版本: | 7.4 及以上 |
WordPress版本: | 6.7 |
版权: | GPL-3.0 |
版权网址: | 版权信息 |
Please checkout the GitHub repository of this plugin to see the sources.
Under the Additional CSS Class(es) control, you will see a link says Open Class Manager. Click on that to open the CSS Class Manager preferences modal.
Use css_class_manager_filtered_class_names
filter to add class names from a PHP file. Example:
php
<?php
function plugin_prefix_add_css_classes( $class_names ) {
$additional_css_names = [
[
'name' => 'flex',
],
[
'name' => 'hidden',
'description' => 'Hide element',
],
];
return array_merge( $class_names, $additional_css_names );
}
add_filter( 'css_class_manager_filtered_class_names', 'plugin_prefix_add_css_classes' );