pre_trackback_post

动作钩子
do_action( 'pre_trackback_post', $post_id, $trackback_url, $charset, $title, $excerpt, $blog_name )
参数
  • (int) $post_id Post ID related to the trackback.
    Required:
  • (string) $trackback_url Trackback URL.
    Required:
  • (string) $charset Character set.
    Required:
  • (string) $title Trackback title.
    Required:
  • (string) $excerpt Trackback excerpt.
    Required:
  • (string) $blog_name Blog name.
    Required:
定义位置
相关勾子
trackback_posttrackback_urlregister_postrestrict_manage_postspre_comment_on_post
相关方法
trackback_responsedo_trackbacksget_trackback_urltrackbackis_trackbacktrackback_url_list
引入
4.7.0
弃用
-

pre_trackback_post。这个过滤器在被保存到数据库之前应用于回溯的文章数据。它允许在回帖数据被存储之前对其进行修改。

在trackback被添加到文章之前触发。

do_action( 'pre_trackback_post', $post_id, $trackback_url, $charset, $title, $excerpt, $blog_name );

常见问题

FAQs
查看更多 >