Advertisements

add_permastruct

Definition:
function add_permastruct($name, $struct, $with_front = true, $ep_mask = EP_NONE) {}

Add permalink structure.

Parameters

  • string $name: Name for permalink structure.
  • string $struct: Permalink structure.
  • bool $with_front: Prepend front base to permalink structure.
  • $ep_mask

Source code

	function add_permastruct($name, $struct, $with_front = true, $ep_mask = EP_NONE) {

		if ( $with_front )

			$struct = $this->front . $struct;

		else

			$struct = $this->root . $struct;

		$this->extra_permastructs[$name] = array($struct, $ep_mask);

	}

275

Advertisements

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 )

Google+ photo

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

Twitter picture

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

Facebook photo

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

Connecting to %s

%d bloggers like this: