customize_render_partials_after

動作鉤子
do_action( 'customize_render_partials_after', $this, $partials )
引數
  • (WP_Customize_Selective_Refresh) $refresh Selective refresh component.
    Required:
  • (array) $partials Placements' context data for the partials rendered in the request. The array is keyed by partial ID, with each item being an array of the placements' context data.
    Required:
定義位置
相關勾子
customize_render_partials_beforecustomize_render_partials_responsecustomize_partial_rendercustomize_dynamic_partial_argscustomize_render_control
相關方法
_wp_customize_loader_settingsis_customize_preview_custom_logo_header_stylescore_update_footer_wp_customize_publish_changesetwelcome_user_msg_filter
引入
4.5.0
棄用
-

customize_render_partials_after是WordPress中的一個動作,在自定義器完成渲染引數後觸發。這個動作可以用來在部分內容渲染完畢後新增自定義邏輯或附加內容。

在引數被渲染後立即啟動。

外掛可能會做一些事情,比如呼叫wp_footer()來抓取指令碼輸出,並通過{@see ‘customize_render_partials_response’}過濾器返回它們。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
do_action( 'customize_render_partials_after', $this, $partials );
do_action( 'customize_render_partials_after', $this, $partials );
do_action( 'customize_render_partials_after', $this, $partials );

常見問題

FAQs
檢視更多 >