insert_with_markers_inline_instructions

過濾鉤子
apply_filters( 'insert_with_markers_inline_instructions', $instructions, $marker )
引數
  • (string[]) $instructions Array of lines with inline instructions.
    Required:
  • (string) $marker The marker being inserted.
    Required:
定義位置
相關勾子
theme_install_actions
相關方法
insert_with_markersget_header_video_settingswp_default_packages_inline_scriptswp_maybe_inline_styles_insert_into_post_buttonget_others_unpublished_posts
引入
5.3.0
棄用
-

insert_with_markers_inline_instructions是WordPress中的一個輔助函式,用於將資料插入檔案中的特定位置,同時保留檔案中已有的任何資料: 這個函式經常在更新或修改配置檔案時使用。

過濾在動態生成內容之前插入的內聯指令。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$instructions = apply_filters( 'insert_with_markers_inline_instructions', $instructions, $marker );
$instructions = apply_filters( 'insert_with_markers_inline_instructions', $instructions, $marker );
$instructions = apply_filters( 'insert_with_markers_inline_instructions', $instructions, $marker );

常見問題

FAQs
檢視更多 >