Pastoid

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

This paste was last updated on March 25, 2010 at 12:10 am.

Pasted Coderaw

	public function action_plugin_activation( $plugin_file )
	{
		if( Plugins::id_from_file( __FILE__ ) == Plugins::id_from_file( $plugin_file ) ) {
			Post::add_new_type('ad');
		}
	}
 
	public function action_plugin_deactivation( $plugin_file )
	{
		if( Plugins::id_from_file( __FILE__ ) == Plugins::id_from_file( $plugin_file  ) ) {
			Post::deactivate_post_type('ad');
		}
	}
 
	public function filter_post_type_display($type, $foruse) 
	{ 
		$names = array( 
			'ad' => array(
				'singular' => _t( 'Ad', 'ad' ),
				'plural' => _t( 'Ads', 'ads' ),
			)
		); 
		return isset($names[$type][$foruse]) ? $names[$type][$foruse] : $type; 
	}
 

Toggle wordwrap

Referring DomainHits
Unknown Referer 127
pastoid.com 4
drunkenmonkey.org 2
Is this paste spam?
<Hide