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标记。

$return = apply_filters( 'get_sample_permalink_html', $return, $post->ID, $new_title, $new_slug, $post );

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2025-12-05 19:32:59

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: