get_sample_permalink_html

過濾鉤子
apply_filters( 'get_sample_permalink_html', $return, $post->ID, $new_title, $new_slug, $post )
引數
  • (string) $return Sample permalink HTML markup.
    Required:
  • (int) $post_id Post ID.
    Required:
  • (string) $new_title New sample permalink title.
    Required:
  • (string) $new_slug New sample permalink slug.
    Required:
  • (WP_Post) $post Post object.
    Required:
定義位置
相關勾子
get_sample_permalinkthe_permalinkthe_permalink_rssget_edit_term_linkedit_form_before_permalink
相關方法
get_sample_permalink_htmlget_sample_permalinkget_the_permalinkget_blog_permalinkget_post_permalinkwp_ajax_sample_permalink
引入
4.4.0
棄用
-

get_sample_permalink_html是一個WordPress的函式,用於檢索一個文章或頁面的樣本固定連結的HTML表示: 該函式接收一個文章ID和一個標題作為引數,並返回一個樣本固定連結的HTML表示。

過濾樣本固定點的HTML標記。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$return = apply_filters( 'get_sample_permalink_html', $return, $post->ID, $new_title, $new_slug, $post );
$return = apply_filters( 'get_sample_permalink_html', $return, $post->ID, $new_title, $new_slug, $post );
$return = apply_filters( 'get_sample_permalink_html', $return, $post->ID, $new_title, $new_slug, $post );

常見問題

FAQs
檢視更多 >