VaultPress::postmeta_action_handler PHP Method

postmeta_action_handler() public method

Handle Notifying VaultPress of PostMeta changes via old school cherypicked hooks
public postmeta_action_handler ( $meta_id, $post_id = null, $meta_key = null )
    function postmeta_action_handler($meta_id, $post_id = null, $meta_key = null)
    {
        if (in_array($meta_key, $this->get_post_meta_name_ignore())) {
            return;
        }
        if (!is_array($meta_id)) {
            return $this->add_ping('db', array('postmeta' => $meta_id));
        }
        foreach ($meta_id as $id) {
            $this->add_ping('db', array('postmeta' => $id));
        }
    }
VaultPress