'integer', 'single' => true, 'default' => 0, 'show_in_rest' => true, 'sanitize_callback' => 'absint', 'auth_callback' => array( $this, 'auth' ), ) ); register_post_meta( PostType::POST_TYPE, self::META_OPEN, array( 'type' => 'boolean', 'single' => true, 'default' => false, 'show_in_rest' => true, 'sanitize_callback' => 'rest_sanitize_boolean', 'auth_callback' => array( $this, 'auth' ), ) ); register_post_meta( PostType::POST_TYPE, self::META_ICON, array( 'type' => 'string', 'single' => true, 'default' => '', 'show_in_rest' => true, 'sanitize_callback' => 'sanitize_text_field', 'auth_callback' => array( $this, 'auth' ), ) ); } }