Shortcode_Button::get_cmb_object PHP Метод

get_cmb_object() публичный Метод

Use the passed-in CMB2 form args to retrieve a CMB2 object
С версии: 0.1.0
public get_cmb_object ( ) : mixed
Результат mixed Returns a CMB2 object or null;
    public function get_cmb_object()
    {
        if (!function_exists('cmb2_metabox_form')) {
            return false;
        }
        if (isset($this->cmb_object)) {
            return $this->cmb_object;
        }
        $this->cmb_object = cmb2_get_metabox($this->get_cmb_config(), $this->button_slug);
        return $this->cmb_object;
    }