add_rewrite_endpoint

Definition:
function add_rewrite_endpoint($name, $places) {}

Add an endpoint, like /trackback/.
The endpoints are added to the end of the request. So a request matching "/2008/10/14/my_post/myep/", the endpoint will be "/myep/".

Parameters

  • unknown_type $name
  • unknown_type $places

Source code

function add_rewrite_endpoint($name, $places) {

	global $wp_rewrite;

	$wp_rewrite->add_endpoint($name, $places);

}

289

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: