CMB2::pre_process PHP Method

pre_process() public method

public pre_process ( )
    public function pre_process()
    {
        /**
         * Fires before fields have been processed/saved.
         *
         * The dynamic portion of the hook name, $this->cmb_id, is the meta_box id.
         *
         * The dynamic portion of the hook name, $object_type, refers to the metabox/form's object type
         * 	Usually `post` (this applies to all post-types).
         *  	Could also be `comment`, `user` or `options-page`.
         *
         * @param array $cmb       This CMB2 object
         * @param int   $object_id The ID of the current object
         */
        do_action("cmb2_{$this->object_type()}_process_fields_{$this->cmb_id}", $this, $this->object_id());
    }