* Update translation text domain * Escape everything that should be escaped. * Add nonce checks where needed. * Sanitize all inputs. * Apply Code style changes across the codebase. * Correct many deprecation notices. * Optimize load order of many filters. * Add Proper Build script * Use emojii flags * Fix i18n deprecation notice for translating too early * Put all scripts in footer and load async
94 lines
2.5 KiB
PHP
94 lines
2.5 KiB
PHP
<?php
|
|
/**
|
|
* Schema for broadcast@create.
|
|
*
|
|
* @package WP_Ultimo\API\Schemas
|
|
* @since 2.0.11
|
|
*/
|
|
|
|
// Exit if accessed directly
|
|
defined('ABSPATH') || exit;
|
|
|
|
/**
|
|
* Schema for broadcast@create.
|
|
*
|
|
* @since 2.0.11
|
|
* @internal last-generated in 2022-12
|
|
* @generated class generated by our build scripts, do not change!
|
|
*
|
|
* @since 2.0.11
|
|
*/
|
|
return [
|
|
'migrated_from_id' => [
|
|
'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-multisite-waas'),
|
|
'type' => 'integer',
|
|
'required' => false,
|
|
],
|
|
'notice_type' => [
|
|
'description' => __('Can be info, success, warning or error.', 'wp-multisite-waas'),
|
|
'type' => 'string',
|
|
'required' => false,
|
|
'enum' => [
|
|
'info',
|
|
'success',
|
|
'warning',
|
|
'error',
|
|
],
|
|
],
|
|
'name' => [
|
|
'description' => __('This broadcast name, which is used as broadcast title as well.', 'wp-multisite-waas'),
|
|
'type' => 'string',
|
|
'required' => false,
|
|
],
|
|
'type' => [
|
|
'description' => __('The type being set.', 'wp-multisite-waas'),
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'status' => [
|
|
'description' => __('The status being set.', 'wp-multisite-waas'),
|
|
'type' => 'string',
|
|
'required' => false,
|
|
],
|
|
'author_id' => [
|
|
'description' => __('The author ID.', 'wp-multisite-waas'),
|
|
'type' => 'integer',
|
|
'required' => false,
|
|
],
|
|
'title' => [
|
|
'description' => __('Post title.', 'wp-multisite-waas'),
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'content' => [
|
|
'description' => __('Post content.', 'wp-multisite-waas'),
|
|
'type' => 'string',
|
|
'required' => true,
|
|
],
|
|
'excerpt' => [
|
|
'description' => __('Post excerpt.', 'wp-multisite-waas'),
|
|
'type' => 'string',
|
|
'required' => false,
|
|
],
|
|
'date_created' => [
|
|
'description' => __('Post creation date.', 'wp-multisite-waas'),
|
|
'type' => 'string',
|
|
'required' => false,
|
|
],
|
|
'date_modified' => [
|
|
'description' => __('Post last modification date.', 'wp-multisite-waas'),
|
|
'type' => 'string',
|
|
'required' => false,
|
|
],
|
|
'slug' => [
|
|
'description' => __('The slug.', 'wp-multisite-waas'),
|
|
'type' => 'mixed',
|
|
'required' => false,
|
|
],
|
|
'skip_validation' => [
|
|
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'),
|
|
'type' => 'boolean',
|
|
'required' => false,
|
|
],
|
|
];
|