admin管理员组

文章数量:1278822

I customized my Gutenberg block color pallete and the WordPress default is that the CSS classes generated has the form has-(slug)-color. For example say I added a color called red. The resulting CSS class will be has-red-color. I traced the function to a core WordPress file: .php#L73

How do I override this function from my functions.php in my theme so I can generate different class names.

I've been reading about hooks and filters but I'm not sure how to use that in this case.

本文标签: How to override a function in the wpincludes folder(block supportscolorsphp)