Support » Plugin: Project Tasks » "Global" theme development

  • Resolved mareebsiddiqui


    Right now in the plugin when I go to the targets tab I see that there is a separate section of “Theme Development”. In this there are several options but not the one that I am looking for. I want a “global” option so that the appointed/assigned user could see the notification(s) all the time as he logins into his dashboard. How can I do this, currently I use the “Full Page” option but with this the user only sees the notification if he is on that particular post. How can I make the appointed user see the notification always as he logins into his dashboard? Any type of help is appreciated. 🙂


Viewing 1 replies (of 1 total)
  • Plugin Author dreamsofmatter


    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 1 replies (of 1 total)
  • The topic ‘"Global" theme development’ is closed to new replies.