Pastoid

The page you are looking at now is at this URL: http://pastoid.com/av0

This paste was last updated on April 17, 2009 at 11:01 am.

Pasted Coderaw

public function filter_template_where_filters( $filters )
 
{
 
	if( isset( $filters['content_type'] ) ) {
		$types = Utils::single_array( $filters->offsetGet( 'content_type' ) );
		$types[] = Post::type( 'your_type' );
		$filters->offsetSet( 'content_type', $types );
	}
	return $filters;
}
 
 
 

Toggle wordwrap

Referring DomainHits
Unknown Referer 127
pastoid.com 15
search.live.com 2
www.google.de 1
Is this paste spam?
<Hide