customize_partial_render

過濾鉤子
apply_filters( 'customize_partial_render', $rendered, $partial, $container_context )
引數
  • (string|array|false) $rendered The partial value. Default false.
    Required:
  • (WP_Customize_Partial) $partial WP_Customize_Setting instance.
    Required:
  • (array) $container_context Optional array of context data associated with the target container.
    Required:
定義位置
相關勾子
customize_render_partials_responsecustomize_partial_render_partial-idcustomize_render_partials_aftercustomize_render_partials_beforecustomize_dynamic_partial_args
相關方法
is_customize_preview_wp_customize_includewp_customize_urlwp_customize_support_scriptwp_admin_bar_rendersanitize_sql_orderby
引入
4.5.0
棄用
-

customize_partial_render是WordPress的一個過濾器,它允許開發者在Customizer中修改區域性的資料。區域性是模板的一部分,可以使用Customizer API動態地更新。

過濾部分渲染。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$rendered = apply_filters( 'customize_partial_render', $rendered, $partial, $container_context );
$rendered = apply_filters( 'customize_partial_render', $rendered, $partial, $container_context );
$rendered = apply_filters( 'customize_partial_render', $rendered, $partial, $container_context );

常見問題

FAQs
檢視更多 >