customize_partial_render_{$partial->id}

過濾鉤子
apply_filters( "customize_partial_render_{$partial->id}", $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_partial_rendercustomize_render_partials_aftercustomize_render_partials_beforecustomize_render_partials_responsecustomize_render_control
相關方法
customize_themes_print_templates_wp_customize_loader_settings_custom_logo_header_styleswp_customize_support_scriptis_customize_preview_wp_customize_include
引入
4.5.0
棄用
-

customize_partial_render_{$partial->id}是customize_partial_render過濾器的一個變種,專門針對一個特定的區域性。鉤子名稱中的$partial->id引數指定了應用該過濾器的部分ID。

對特定的區域性進行過濾渲染。

鉤子名稱的動態部分,$partial->ID指的是區域性ID。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$rendered = apply_filters( "customize_partial_render_{$partial->id}", $rendered, $partial, $container_context );
$rendered = apply_filters( "customize_partial_render_{$partial->id}", $rendered, $partial, $container_context );
$rendered = apply_filters( "customize_partial_render_{$partial->id}", $rendered, $partial, $container_context );

常見問題

FAQs
檢視更多 >