revision_text_diff_options

過濾鉤子
apply_filters( 'revision_text_diff_options', $args, $field, $compare_from, $compare_to )
引數
  • (array) $args { Associative array of options to pass to wp_text_diff(). @type bool $show_split_view True for split view (two columns), false for un-split view (single column). Default true. }
    Required:
  • (string) $field The current revision field.
    Required:
  • (WP_Post) $compare_from The revision post to compare from.
    Required:
  • (WP_Post) $compare_to The revision post to compare to.
    Required:
定義位置
相關勾子
process_text_diff_htmlwp_get_revision_ui_diffpersonal_optionspre_update_optiondeleted_option
相關方法
export_date_optionsremove_allowed_optionswp_get_revision_ui_diffwp_load_core_site_optionsdelete_site_optionfilter_default_option
引入
4.1.0
棄用
-

revision_text_diff_options: 這個函式設定在WordPress中顯示一個文章或頁面的兩個修訂版之間的差異的選項。這些選項可以包括諸如要使用的差異演算法的型別和差異輸出的格式。

過濾修訂版的文字差異選項。

在檢視文章修訂時,過濾傳遞給wp_text_diff()的選項。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$args = apply_filters( 'revision_text_diff_options', $args, $field, $compare_from, $compare_to );
$args = apply_filters( 'revision_text_diff_options', $args, $field, $compare_from, $compare_to );
$args = apply_filters( 'revision_text_diff_options', $args, $field, $compare_from, $compare_to );

常見問題

FAQs
檢視更多 >