VaultPress::post_action_handler PHP Method

post_action_handler() public method

Handle Notifying VaultPress of Post Changes
public post_action_handler ( $post_id )
    function post_action_handler($post_id)
    {
        if (current_filter() == 'delete_post') {
            return $this->add_ping('db', array('post' => $post_id), 'delete_post');
        }
        return $this->add_ping('db', array('post' => $post_id), 'edit_post');
    }
VaultPress