首页 WordPress函数大全 register_block_style()

register_block_style()

2020-05-02 / 3725阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

register_block_style( string $block_name, array $style_properties )

注册新的块样式。

描述

参数

$block_name

(string)
(Required)
Block type name including namespace.

$style_properties

(array)
(Required)
Array containing the properties of the style name, label, style (name of the stylesheet to be enqueued), inline_style (string containing the CSS to be added).

返回

(boolean) True if the block style was registered with success and false otherwise.

大家谈论
    我的见解