wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_maybe_disable_trackback_for_environment › WordPress Function

Since7.1.0
已弃用n/a
› wp_maybe_disable_trackback_for_environment ( 没有参数 )
定义在:
文档:

Rejects incoming trackbacks in non-production environments.

Hooked to pre_trackback_post which fires in wp-trackback.php before the trackback is processed. Calls trackback_response() which sends an XML error response and terminates the request.


源码

function wp_maybe_disable_trackback_for_environment() {
	if ( wp_should_disable_pings_for_environment() ) {
		trackback_response( 1, __( 'Trackbacks are disabled in non-production environments.' ) );
	}
}