• Resolved samjco

    (@samjco)


    I see it is possible to fire a notification on the status change of draft, publish. Is it possible to fire a notification on custom statuses (e.g status-pending)?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Kuba Mikita

    (@kubitomakita)

    Hi, it’s not possible at the moment in the core plugin. You can create your own Trigger, though.

    This is a nice idea I think, I’m putting this in the roadmap.

    Thread Starter samjco

    (@samjco)

    Here a function I wrote that might help:

    add_action('init', 'get_statuses', PHP_INT_MAX);
    //PHP_INT_MAX is use to get all statuses, both built-in and custom registered.
    
    private function get_statuses() {
    
    		global $wp_post_statuses;
    
    		$choices = array('all' => 'All');
    
    		foreach($wp_post_statuses as $status):
    
    			$choices[$status->name] = $status->label;
    		
    		endforeach;
    
    		return $choices;
    
    } 
    Webserv

    (@webservptyltd)

    This is exactly what I am looking for. Hope it gets built into the core.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom Status Change notification’ is closed to new replies.