Quantcast
Channel: Topic Tag: plugin | WordPress.org
Viewing all articles
Browse latest Browse all 26892

dreamsofmatter on "[Plugin: Project Tasks] "Global" theme development"

$
0
0

Yes, just put this in your theme's functions.php file. Hope it helps!

add_filter ( 'projekt_tasks_targets', 'add_general_theme_project_tasks_target');

add_filter ( 'projekt_tasks_active_targets_on_post', 'add_general_theme_project_tasks_target', 1 );

function add_general_theme_project_tasks_target ( $targets ) {

	array_push ( $targets, array (

		'target_type' 		=> 'spt_target_page_template',

		'target_id' 		=> 'theme_general',

		'target_category' 	=> 'Theme Development',

		'name' 			=> 'General',

		'shortening' 		=> 'T',

		'item_name' 		=> 'Theme Development', /* give this the name of your theme if you want to impress your clients :) */

		'order' 			=> 0,

		'description' 		=> 'Connect this task to general theme development. This task will appear on every page.'
	));

	return $targets;
}

Viewing all articles
Browse latest Browse all 26892

Trending Articles