src/Meta/Box.php
public function savePost($id)
    {
        if (
            Guard::doingAutosave() ||
            Guard::doingAjax() ||
            ! Guard::verifyNonce('cuztom_nonce', 'cuztom_meta') ||
            ! Guard::isPostType($id, $this->postTypes) ||
            ! Guard::userCanEdit($id)
        ) {
            return;
        }

        // Filter
        $values = apply_filters('cuztom_box_save_values', (new Request($_POST))->getAll(), $this);

        // Do
        do_action('cuztom_box_save', $this);

        parent::save($id, $values);
    }
public function savePost($id)
    {
        if (
            Guard::doingAutosave() ||
            Guard::doingAjax() ||
            ! Guard::verifyNonce('cuztom_nonce', 'cuztom_meta') ||
            ! Guard::isPostType($id, $this->postTypes) ||
            ! Guard::userCanEdit($id)
        ) {
            return;
        }

        // Filter
        $values = apply_filters('cuztom_box_save_values', (new Request($_POST))->getAll(), $this);

        // Do
        do_action('cuztom_box_save', $this);

        parent::save($id, $values);
    }
public function savePost ( $ id ) { if ( Guard :: doingAutosave ( ) || Guard :: doingAjax ( ) || ! Guard :: verifyNonce ( 'cuztom_nonce' , 'cuztom_meta' ) || ! Guard :: isPostType ( $ id , $ this -> postTypes ) || ! Guard :: userCanEdit ( $ id ) ) { return ; } // Filter $ values = apply_filters ( 'cuztom_box_save_values' , ( new Request ( $ _POST ) ) -> getAll ( ) , $ this ) ; // Do do_action ( 'cuztom_box_save' , $ this ) ; parent :: save ( $ id , $ values ) ; }
Hooks into the save hook for the newly registered Post Type.

@param int $id
Hooks into the save hook for the newly registered Post Type .