'boolean', 'single' => true, 'default' => false, 'show_in_rest' => array( 'schema' => array( 'type' => 'boolean' ) ), 'sanitize_callback' => 'rest_sanitize_boolean', 'auth_callback' => 'chrnx_auth_project_meta', ) ); } add_action( 'init', 'chrnx_register_project_meta' );