the_editor_content

過濾鉤子
apply_filters( 'the_editor_content', $instance['text'], $default_editor )

the_editor_content是一個函式,用於輸出使用視覺化編輯器建立的文章或頁面的內容: 這個函式用來在視覺化編輯器中顯示內容,也可以用來檢索內容,以便在WordPress主題的其他部分使用。

這個過濾器在wp-includes/class-wp-editor.php中有記錄。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$text = apply_filters( 'the_editor_content', $instance['text'], $default_editor );
$text = apply_filters( 'the_editor_content', $instance['text'], $default_editor );
$text = apply_filters( 'the_editor_content', $instance['text'], $default_editor );

常見問題

FAQs
檢視更多 >