diff --git a/composer.json b/composer.json index e28688d..ac72d3b 100644 --- a/composer.json +++ b/composer.json @@ -4,7 +4,8 @@ "phpcsstandards/php_codesniffer": "^4.0", "phpstan/phpstan": "^1.12", "phpstan/extension-installer": "^1.3", - "szepeviktor/phpstan-wordpress": "^1.3" + "szepeviktor/phpstan-wordpress": "^1.3", + "php-stubs/acf-pro-stubs": "^6.0" }, "config": { "allow-plugins": { diff --git a/composer.lock b/composer.lock index b8899fe..8199118 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "a156e1457c7e3519aab59379cbe4fcbe", + "content-hash": "1d1d9439e85715855b5c0cf5751a306a", "packages": [], "packages-dev": [ { @@ -103,6 +103,58 @@ ], "time": "2026-05-06T08:26:05+00:00" }, + { + "name": "php-stubs/acf-pro-stubs", + "version": "v6.5.0", + "source": { + "type": "git", + "url": "https://github.com/php-stubs/acf-pro-stubs.git", + "reference": "e54ba80a945fd1f6c9ebe761e3f19992fbaedb39" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-stubs/acf-pro-stubs/zipball/e54ba80a945fd1f6c9ebe761e3f19992fbaedb39", + "reference": "e54ba80a945fd1f6c9ebe761e3f19992fbaedb39", + "shasum": "" + }, + "require": { + "php-stubs/wordpress-stubs": "^4.7 || ^5.0 || ^6.0" + }, + "require-dev": { + "php": "~7.1 || ^8.0", + "php-stubs/generator": "^0.8", + "phpdocumentor/reflection-docblock": "^5.3" + }, + "suggest": { + "symfony/polyfill-php73": "Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions", + "szepeviktor/phpstan-wordpress": "WordPress extensions for PHPStan" + }, + "type": "library", + "extra": { + "installer-paths": { + "source/{$name}/": [ + "type:wordpress-plugin" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Advanced Custom Fields PRO stubs for static analysis.", + "homepage": "https://github.com/php-stubs/acf-pro-stubs", + "keywords": [ + "PHPStan", + "acf", + "static analysis", + "wordpress" + ], + "support": { + "issues": "https://github.com/php-stubs/acf-pro-stubs/issues", + "source": "https://github.com/php-stubs/acf-pro-stubs/tree/v6.5.0" + }, + "time": "2025-09-05T00:47:01+00:00" + }, { "name": "php-stubs/wordpress-stubs", "version": "v6.9.4", diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index f0613e4..273cd6f 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -99,6 +99,61 @@ ], "install-path": "../dealerdirect/phpcodesniffer-composer-installer" }, + { + "name": "php-stubs/acf-pro-stubs", + "version": "v6.5.0", + "version_normalized": "6.5.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-stubs/acf-pro-stubs.git", + "reference": "e54ba80a945fd1f6c9ebe761e3f19992fbaedb39" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-stubs/acf-pro-stubs/zipball/e54ba80a945fd1f6c9ebe761e3f19992fbaedb39", + "reference": "e54ba80a945fd1f6c9ebe761e3f19992fbaedb39", + "shasum": "" + }, + "require": { + "php-stubs/wordpress-stubs": "^4.7 || ^5.0 || ^6.0" + }, + "require-dev": { + "php": "~7.1 || ^8.0", + "php-stubs/generator": "^0.8", + "phpdocumentor/reflection-docblock": "^5.3" + }, + "suggest": { + "symfony/polyfill-php73": "Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions", + "szepeviktor/phpstan-wordpress": "WordPress extensions for PHPStan" + }, + "time": "2025-09-05T00:47:01+00:00", + "type": "library", + "extra": { + "installer-paths": { + "source/{$name}/": [ + "type:wordpress-plugin" + ] + } + }, + "installation-source": "dist", + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Advanced Custom Fields PRO stubs for static analysis.", + "homepage": "https://github.com/php-stubs/acf-pro-stubs", + "keywords": [ + "PHPStan", + "acf", + "static analysis", + "wordpress" + ], + "support": { + "issues": "https://github.com/php-stubs/acf-pro-stubs/issues", + "source": "https://github.com/php-stubs/acf-pro-stubs/tree/v6.5.0" + }, + "install-path": "../php-stubs/acf-pro-stubs" + }, { "name": "php-stubs/wordpress-stubs", "version": "v6.9.4", @@ -829,6 +884,7 @@ "dev": true, "dev-package-names": [ "dealerdirect/phpcodesniffer-composer-installer", + "php-stubs/acf-pro-stubs", "php-stubs/wordpress-stubs", "phpcsstandards/php_codesniffer", "phpcsstandards/phpcsextra", diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index 98d2d3d..715ad57 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -3,7 +3,7 @@ 'name' => '__root__', 'pretty_version' => 'dev-main', 'version' => 'dev-main', - 'reference' => '3978aa5ba4cd9e6ca3d931c0986d4bb705cc2f8b', + 'reference' => '7d14e07bea2cb1511cd904dfd032619031773246', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), @@ -13,7 +13,7 @@ '__root__' => array( 'pretty_version' => 'dev-main', 'version' => 'dev-main', - 'reference' => '3978aa5ba4cd9e6ca3d931c0986d4bb705cc2f8b', + 'reference' => '7d14e07bea2cb1511cd904dfd032619031773246', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), @@ -28,6 +28,15 @@ 'aliases' => array(), 'dev_requirement' => true, ), + 'php-stubs/acf-pro-stubs' => array( + 'pretty_version' => 'v6.5.0', + 'version' => '6.5.0.0', + 'reference' => 'e54ba80a945fd1f6c9ebe761e3f19992fbaedb39', + 'type' => 'library', + 'install_path' => __DIR__ . '/../php-stubs/acf-pro-stubs', + 'aliases' => array(), + 'dev_requirement' => true, + ), 'php-stubs/wordpress-stubs' => array( 'pretty_version' => 'v6.9.4', 'version' => '6.9.4.0', diff --git a/vendor/php-stubs/acf-pro-stubs/LICENSE b/vendor/php-stubs/acf-pro-stubs/LICENSE new file mode 100644 index 0000000..84b563a --- /dev/null +++ b/vendor/php-stubs/acf-pro-stubs/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2019 Viktor Szépe + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/vendor/php-stubs/acf-pro-stubs/acf-pro-stubs.php b/vendor/php-stubs/acf-pro-stubs/acf-pro-stubs.php new file mode 100644 index 0000000..c1ee81e --- /dev/null +++ b/vendor/php-stubs/acf-pro-stubs/acf-pro-stubs.php @@ -0,0 +1,24403 @@ + value arguments. + * + * @date 23/1/19 + * @since 5.7.10 + * + * @param void + * @return integer + */ + function query($args, $operator = 'AND') + { + } + /** + * alias + * + * Sets an alias for the given name allowing data to be found via multiple identifiers. + * + * @date 18/1/19 + * @since 5.7.10 + * + * @param type $var Description. Default. + * @return type Description. + */ + function alias($name = '') + { + } + /** + * switch_site + * + * Triggered when switching between sites on a multisite installation. + * + * @date 13/2/19 + * @since 5.7.11 + * + * @param integer $site_id New blog ID. + * @param int prev_blog_id Prev blog ID. + * @return void + * @phpstan-return void + */ + function switch_site($site_id, $prev_site_id) + { + } + } + class ACF_Admin_Notice extends \ACF_Data + { + /** @var array Storage for data. */ + var $data = array( + /** @type string Text displayed in notice. */ + 'text' => '', + /** @type string The type of notice (warning, error, success, info). */ + 'type' => 'info', + /** @type bool If the notice can be dismissed. */ + 'dismissible' => \true, + /** @type bool If the dismissed state should be persisted to ACF user preferences. */ + 'persisted' => \false, + ); + /** + * render + * + * Renders the notice HTML. + * + * @date 27/12/18 + * @since 5.8.0 + * + * @param void + * @return void + */ + function render() + { + } + } + class ACF_Admin_Options_Preview + { + /** + * Constructor. + * + * @since 6.2.2 + */ + public function __construct() + { + } + /** + * Adds the Options Pages menu item to the admin menu. + * + * @since 6.2.2 + * @phpstan-return void + */ + public function admin_menu() + { + } + /** + * Load the body class and scripts. + * + * @since 6.2.2 + */ + public function load() + { + } + /** + * Modifies the admin body class. + * + * @since 6.2.2 + * + * @param string $classes Space-separated list of CSS classes. + * @return string + */ + public function admin_body_class($classes) + { + } + /** + * The render for the options page preview view. + * + * @since 6.2.2 + */ + public function render() + { + } + } + class acf_admin_tools + { + /** + * Contains an array of admin tool instances. + * + * @var array + */ + public $tools = array(); + /** + * The active tool. + * + * @var string + */ + public $active = ''; + /** + * __construct + * + * This function will setup the class functionality + * + * @date 10/10/17 + * @since 5.6.3 + * + * @param void + * @return void + */ + function __construct() + { + } + /** + * register_tool + * + * This function will store a tool tool class + * + * @date 10/10/17 + * @since 5.6.3 + * + * @param string $class + * @return void + */ + function register_tool($class) + { + } + /** + * get_tool + * + * This function will return a tool tool class + * + * @date 10/10/17 + * @since 5.6.3 + * + * @param string $name + * @return void + */ + function get_tool($name) + { + } + /** + * get_tools + * + * This function will return an array of all tools + * + * @date 10/10/17 + * @since 5.6.3 + * + * @param void + * @return array + */ + function get_tools() + { + } + /** + * This function will add the ACF menu item to the WP admin + * + * @type action (admin_menu) + * @date 28/09/13 + * @since 5.0.0 + * + * @param void + * @return void + * @phpstan-return void + */ + function admin_menu() + { + } + /** + * load + * + * description + * + * @date 10/10/17 + * @since 5.6.3 + * + * @param void + * @return void + */ + function load() + { + } + /** + * Modifies the admin body class. + * + * @since 6.0.0 + * + * @param string $classes Space-separated list of CSS classes. + * @return string + */ + public function admin_body_class($classes) + { + } + /** + * include_tools + * + * description + * + * @date 10/10/17 + * @since 5.6.3 + * + * @param void + * @return void + */ + function include_tools() + { + } + /** + * check_submit + * + * description + * + * @date 10/10/17 + * @since 5.6.3 + * + * @param void + * @return void + */ + function check_submit() + { + } + /** + * html + * + * description + * + * @date 10/10/17 + * @since 5.6.3 + * + * @param void + * @return void + */ + function html() + { + } + /** + * Output the metabox HTML for specific tools + * + * @since 5.6.3 + * + * @param mixed $post The post this metabox is being displayed on, should be an empty string always for us on a tools page. + * @param array $metabox An array of the metabox attributes. + */ + public function metabox_html($post, $metabox) + { + } + } + class ACF_Admin_Upgrade + { + /** + * The name of the transient to store the network update check status. + * + * @var string + */ + public $network_upgrade_needed_transient; + /** + * __construct + * + * Sets up the class functionality. + * + * @date 31/7/18 + * @since 5.7.2 + * + * @param void + * @return void + */ + function __construct() + { + } + /** + * admin_menu + * + * Setus up logic if DB Upgrade is needed on a single site. + * + * @date 24/8/18 + * @since 5.7.4 + * + * @param void + * @return void + */ + function admin_menu() + { + } + /** + * Displays a “Database Upgrade Required” network admin notice and adds + * the “Upgrade Database” submenu under the “Dashboard” network admin + * menu item if an ACF upgrade needs to run on any network site. + * + * @since 5.7.4 + * @since 6.0.0 Reduce memory usage, cache network upgrade checks. + * @phpstan-return void + */ + function network_admin_menu() + { + } + /** + * Checks if an ACF database upgrade is required on any site in the + * multisite network. + * + * Stores the result in `$this->network_upgrade_needed_transient`, + * which is version-linked to ACF_UPGRADE_VERSION: the highest ACF + * version that requires an upgrade function to run. Bumping + * ACF_UPGRADE_VERSION will trigger new upgrade checks but incrementing + * ACF_VERSION alone will not. + * + * @since 6.0.0 + * @return string 'yes' if any site in the network requires an upgrade, + * otherwise 'no'. String instead of boolean so that + * `false` returned from a get_site_transient check can + * denote that an upgrade check is needed. + */ + public function check_for_network_upgrades() + { + } + /** + * admin_load + * + * Runs during the loading of the admin page. + * + * @date 24/8/18 + * @since 5.7.4 + * + * @param type $var Description. Default. + * @return type Description. + */ + function admin_load() + { + } + /** + * network_admin_load + * + * Runs during the loading of the network admin page. + * + * @date 24/8/18 + * @since 5.7.4 + * + * @param type $var Description. Default. + * @return type Description. + */ + function network_admin_load() + { + } + /** + * Modifies the admin body class. + * + * @since 6.0.0 + * + * @param string $classes Space-separated list of CSS classes. + * @return string + */ + public function admin_body_class($classes) + { + } + /** + * admin_notices + * + * Displays the DB Upgrade prompt. + * + * @date 23/8/18 + * @since 5.7.3 + * + * @param void + * @return void + */ + function admin_notices() + { + } + /** + * network_admin_notices + * + * Displays the DB Upgrade prompt on a multi site. + * + * @date 23/8/18 + * @since 5.7.3 + * + * @param void + * @return void + */ + function network_admin_notices() + { + } + /** + * admin_html + * + * Displays the HTML for the admin page. + * + * @date 24/8/18 + * @since 5.7.4 + * + * @param void + * @return void + */ + function admin_html() + { + } + /** + * network_admin_html + * + * Displays the HTML for the network upgrade admin page. + * + * @date 24/8/18 + * @since 5.7.4 + * + * @param void + * @return void + */ + function network_admin_html() + { + } + } + class ACF_Admin + { + /** + * Constructor. + * + * @since 5.0.0 + */ + public function __construct() + { + } + /** + * Adds the ACF menu item. + * + * @date 28/09/13 + * @since 5.0.0 + * @phpstan-return void + */ + public function admin_menu() + { + } + /** + * Enqueues global admin styling. + * + * @since 5.0.0 + */ + public function admin_enqueue_scripts() + { + } + /** + * Appends custom admin body classes. + * + * @date 5/11/19 + * @since 5.8.7 + * + * @param string $classes Space-separated list of CSS classes. + * @return string + */ + public function admin_body_class($classes) + { + } + /** + * Adds custom functionality to "ACF" admin pages. + * + * @date 7/4/20 + * @since 5.9.0 + * + * @param void + * @return void + */ + public function current_screen($screen) + { + } + /** + * Sets up the admin help tab. + * + * @date 20/4/20 + * @since 5.9.0 + * + * @param void + * @return void + */ + public function setup_help_tab() + { + } + /** + * Shows a notice to import post types and taxonomies from CPTUI if that plugin is active. + * + * @since 6.1 + * @phpstan-return void + */ + public function maybe_show_import_from_cptui_notice() + { + } + /** + * Notifies the user that fields rendered via shortcode or the_field() have + * had HTML removed/altered due to unsafe HTML being escaped. + * + * @since 6.2.5 + * @phpstan-return void + */ + public function maybe_show_escaped_html_notice() + { + } + /** + * Dismisses the escaped unsafe HTML notice. + * + * @since 6.2.5 + * @phpstan-return void + */ + public function dismiss_escaped_html_notice() + { + } + /** + * Clear the escaped unsafe HTML log. + * + * @since 6.2.5 + * @phpstan-return void + */ + public function clear_escaped_html_log() + { + } + /** + * Notifies the user that Select2 v3 has been deprecated and will be removed. + * + * @since 6.4.3 + * + * @return void + * @phpstan-return void + */ + public function maybe_show_select2_v3_deprecation_notice() + { + } + /** + * Renders the admin navigation element. + * + * @date 27/3/20 + * @since 5.9.0 + * + * @param void + * @return void + */ + function in_admin_header() + { + } + /** + * Modifies the admin footer text. + * + * @date 7/4/20 + * @since 5.9.0 + * + * @param string $text The current admin footer text. + * @return string + */ + public function admin_footer_text($text) + { + } + /** + * Modifies the admin footer version text. + * + * @since 6.2 + * + * @param string $text The current admin footer version text. + * @return string + */ + public function admin_footer_version_text($text) + { + } + /** + * Ensure the ACF parent menu is selected for add-new.php + * + * @since 6.1 + * @param string $parent_file The parent file checked against menu activation. + * @return string The modified parent file + */ + public function ensure_menu_selection($parent_file) + { + } + /** + * Ensure the correct ACF submenu item is selected when in post-new versions of edit pages + * + * @since 6.1 + * @param string $submenu_file The submenu filename. + * @return string The modified submenu filename + */ + public function ensure_submenu_selection($submenu_file) + { + } + } + /** + * ACF Admin Field Group Class + * + * All the logic for editing a field group + */ + class acf_admin_field_group extends \ACF_Admin_Internal_Post_Type + { + /** + * The slug for the internal post type. + * + * @since 6.1 + * @var string + */ + public $post_type = 'acf-field-group'; + /** + * The admin body class used for the post type. + * + * @since 6.1 + * @var string + */ + public $admin_body_class = 'acf-admin-single-field-group'; + /** + * Constructs the class. + * + * @since 5.0.0 + */ + public function __construct() + { + } + /** + * Customizes the messages shown when editing a field group. + * + * @since 5.0.0 + * + * @param array $messages Post type messages. + * @return array + */ + public function post_updated_messages($messages) + { + } + /** + * Enqueues any scripts necessary for internal post type. + * + * @since 5.0.0 + */ + public function admin_enqueue_scripts() + { + } + /** + * Set up functionality for the field group edit page. + * + * @since 3.1.8 + */ + public function admin_head() + { + } + /** + * This action will allow ACF to render metaboxes after the title. + */ + public function edit_form_after_title() + { + } + /** + * This function will add extra HTML to the acf form data element + * + * @since 5.3.8 + * + * @param array $args Arguments array to pass through to action. + * @return void + */ + public function form_data($args) + { + } + /** + * This function will append extra l10n strings to the acf JS object + * + * @since 5.3.8 + * + * @param array $l10n The array of translated strings. + * @return array $l10n + */ + public function admin_l10n($l10n) + { + } + /** + * Admin footer third party hook support + * + * @since 5.3.2 + */ + public function admin_footer() + { + } + /** + * Renders HTML for the ACF PRO features upgrade notice. + * @phpstan-return void + */ + public function include_pro_features() + { + } + /** + * Screen settings html output + * + * @since 3.6.0 + * + * @param string $html Current screen settings HTML. + * @return string $html + */ + public function screen_settings($html) + { + } + /** + * Sets the "Edit Field Group" screen to use a one-column layout. + * + * @param integer $columns Number of columns for layout. + * @return integer + */ + public function screen_layout($columns = 0) + { + } + /** + * This function will customize the publish metabox + * + * @since 5.2.9 + */ + public function post_submitbox_misc_actions() + { + } + /** + * Saves field group data. + * + * @since 1.0.0 + * + * @param integer $post_id The post ID. + * @param WP_Post $post The post object. + * @return integer $post_id + */ + public function save_post($post_id, $post) + { + } + /** + * This function will render the HTML for the metabox 'acf-field-group-fields' + * + * @since 5.0.0 + */ + public function mb_fields() + { + } + /** + * This function will render the HTML for the metabox 'acf-field-group-pro-features' + * + * @since 6.0.0 + */ + public function mb_pro_features() + { + } + /** + * This function will render the HTML for the metabox 'acf-field-group-options' + * + * @since 5.0.0 + */ + public function mb_options() + { + } + /** + * This function can be accessed via an AJAX action and will return the result from the render_location_value function + * + * @since 5.0.0 + * @phpstan-return never + */ + public function ajax_render_location_rule() + { + } + /** + * This function will return HTML containing the field's settings based on it's new type + * + * @since 5.0.0 + * @phpstan-return never + */ + public function ajax_render_field_settings() + { + } + /** + * Moves fields between field groups via AJAX. + * + * @since 5.0.0 + * + * @return void + * @phpstan-return never + */ + public function ajax_move_field() + { + } + } + class ACF_Admin_Field_Groups extends \ACF_Admin_Internal_Post_Type_List + { + /** + * The slug for the internal post type. + * + * @var string + */ + public $post_type = 'acf-field-group'; + /** + * The admin body class used for the post type. + * + * @var string + */ + public $admin_body_class = 'acf-admin-field-groups'; + /** + * The name of the store used for the post type. + * + * @var string + */ + public $store = 'field-groups'; + /** + * Constructor. + * + * @since 5.0.0 + */ + public function __construct() + { + } + /** + * Add any menu items required for field groups. + * + * @since 6.1 + */ + public function admin_menu() + { + } + /** + * Redirects users from ACF 4.0 admin page. + * + * @since 5.7.6 + */ + public function handle_redirection() + { + } + /** + * Customizes the admin table columns. + * + * @date 1/4/20 + * @since 5.9.0 + * + * @param array $_columns The columns array. + * @return array + */ + public function admin_table_columns($_columns) + { + } + /** + * Renders a specific admin table column. + * + * @date 17/4/20 + * @since 5.9.0 + * + * @param string $column_name The name of the column to display. + * @param array $post The main ACF post array. + * @return void + */ + public function render_admin_table_column($column_name, $post) + { + } + /** + * Displays a visual representation of the field group's locations. + * + * @date 1/4/20 + * @since 5.9.0 + * + * @param array $field_group The field group. + * @return void + */ + public function render_admin_table_column_locations($field_group) + { + } + /** + * Renders the number of fields created for the field group in the list table. + * + * @since 6.1.5 + * + * @param array $field_group The main field group array. + * @return void + * @phpstan-return void + */ + public function render_admin_table_column_num_fields($field_group) + { + } + /** + * Gets the class(es) to be used by field groups in the list table. + * + * @since 6.2.8 + * + * @param array $classes An array of the classes used by the field group. + * @param array $css_class An array of additional classes added to the field group. + * @param integer $post_id The ID of the field group. + * @return array + */ + public function get_admin_table_post_classes($classes, $css_class, $post_id) + { + } + /** + * Fires when trashing a field group. + * + * @date 8/01/2014 + * @since 5.0.0 + * + * @param integer $post_id The post ID. + * @return void + */ + public function trashed_post($post_id) + { + } + /** + * Fires when untrashing a field group. + * + * @date 8/01/2014 + * @since 5.0.0 + * + * @param integer $post_id The post ID. + * @return void + */ + public function untrashed_post($post_id) + { + } + /** + * Fires when deleting a field group. + * + * @date 8/01/2014 + * @since 5.0.0 + * + * @param integer $post_id The post ID. + * @return void + */ + public function deleted_post($post_id) + { + } + /** + * Gets the translated action notice text for list table actions (activate, deactivate, sync, etc.). + * + * @since 6.1 + * + * @param string $action The action being performed. + * @param integer $count The number of items the action was performed on. + * @return string + */ + public function get_action_notice_text($action, $count = 1) + { + } + } + /** + * ACF Admin Post Type Class + * + * All the logic for editing a post type. + */ + class ACF_Admin_Post_type extends \ACF_Admin_Internal_Post_Type + { + /** + * The slug for the internal post type. + * + * @since 6.1 + * @var string + */ + public $post_type = 'acf-post-type'; + /** + * The admin body class used for the post type. + * + * @since 6.1 + * @var string + */ + public $admin_body_class = 'acf-admin-single-post-type'; + /** + * This function will customize the message shown when editing a post type. + * + * @since 5.0.0 + * + * @param array $messages Post type messages. + * @return array + */ + public function post_updated_messages($messages) + { + } + /** + * Renders the post type created message. + * + * @since 6.1 + * + * @param boolean $created True if the post was just created. + * @return string + */ + public function post_type_created_message($created = \false) + { + } + /** + * Enqueues any scripts necessary for internal post type. + * + * @since 5.0.0 + */ + public function admin_enqueue_scripts() + { + } + /** + * Sets up all functionality for the post type edit page to work. + * + * @since 3.1.8 + */ + public function admin_head() + { + } + /** + * This action will allow ACF to render metaboxes after the title. + */ + public function edit_form_after_title() + { + } + /** + * This function will add extra HTML to the acf form data element + * + * @since 5.3.8 + * + * @param array $args Arguments array to pass through to action. + * @return void + */ + public function form_data($args) + { + } + /** + * This function will append extra l10n strings to the acf JS object + * + * @since 5.3.8 + * + * @param array $l10n The array of translated strings. + * @return array $l10n + */ + public function admin_l10n($l10n) + { + } + /** + * Admin footer third party hook support + * + * @since 5.3.2 + */ + public function admin_footer() + { + } + /** + * Screen settings html output + * + * @since 3.6.0 + * + * @param string $html Current screen settings HTML. + * @return string $html + */ + public function screen_settings($html) + { + } + /** + * Sets the "Edit Post Type" screen to use a one-column layout. + * + * @param integer $columns Number of columns for layout. + * @return integer + */ + public function screen_layout($columns = 0) + { + } + /** + * Force basic settings to always be visible + * + * @param array $hidden_metaboxes The metaboxes hidden on this page. + * @return array + */ + public function force_basic_settings($hidden_metaboxes) + { + } + /** + * Force advanced settings to be visible + * + * @param array $hidden_metaboxes The metaboxes hidden on this page. + * @return array + */ + public function force_advanced_settings($hidden_metaboxes) + { + } + /** + * This function will customize the publish metabox + * + * @since 5.2.9 + */ + public function post_submitbox_misc_actions() + { + } + /** + * Saves post type data. + * + * @since 1.0.0 + * + * @param integer $post_id The post ID. + * @param WP_Post $post The post object. + * @return integer $post_id + */ + public function save_post($post_id, $post) + { + } + /** + * Renders HTML for the basic settings metabox. + * + * @since 5.0.0 + */ + public function mb_basic_settings() + { + } + /** + * Renders the HTML for the advanced settings metabox. + * + * @since 5.0.0 + */ + public function mb_advanced_settings() + { + } + } + /** + * The ACF Post Types admin controller class + */ + class ACF_Admin_Post_Types extends \ACF_Admin_Internal_Post_Type_List + { + /** + * The slug for the internal post type. + * + * @var string + */ + public $post_type = 'acf-post-type'; + /** + * The admin body class used for the post type. + * + * @var string + */ + public $admin_body_class = 'acf-admin-post-types'; + /** + * The name of the store used for the post type. + * + * @var string + */ + public $store = 'post-types'; + /** + * Constructor. + * + * @since 6.2 + */ + public function __construct() + { + } + /** + * Current screen actions for the post types list admin page. + * + * @since 6.1 + * @phpstan-return void + */ + public function current_screen() + { + } + /** + * Add any menu items required for post types. + * + * @since 6.1 + */ + public function admin_menu() + { + } + /** + * Customizes the admin table columns. + * + * @date 1/4/20 + * @since 5.9.0 + * + * @param array $_columns The columns array. + * @return array + */ + public function admin_table_columns($_columns) + { + } + /** + * Renders a specific admin table column. + * + * @date 17/4/20 + * @since 5.9.0 + * + * @param string $column_name The name of the column to display. + * @param array $post The main ACF post array. + * @return void + */ + public function render_admin_table_column($column_name, $post) + { + } + /** + * Renders the field groups attached to the post type in the list table. + * + * @since 6.1 + * + * @param array $post_type The main post type array. + * @return void + * @phpstan-return void + */ + public function render_admin_table_column_field_groups($post_type) + { + } + /** + * Renders the taxonomies attached to the post type in the list table. + * + * @since 6.1 + * + * @param array $post_type The main post type array. + * @return void + * @phpstan-return void + */ + public function render_admin_table_column_taxonomies($post_type) + { + } + /** + * Renders the number of posts created for the post type in the list table. + * + * @since 6.1 + * + * @param array $post_type The main post type array. + * @return void + * @phpstan-return void + */ + public function render_admin_table_column_num_posts($post_type) + { + } + /** + * Gets the translated action notice text for list table actions (activate, deactivate, sync, etc.). + * + * @since 6.1 + * + * @param string $action The action being performed. + * @param integer $count The number of items the action was performed on. + * @return string + */ + public function get_action_notice_text($action, $count = 1) + { + } + /** + * Returns the registration error state. + * + * @since 6.1 + * + * @return string + */ + public function get_registration_error_state() + { + } + } + /** + * The ACF Post Types admin controller class + */ + class ACF_Admin_Taxonomies extends \ACF_Admin_Internal_Post_Type_List + { + /** + * The slug for the internal post type. + * + * @var string + */ + public $post_type = 'acf-taxonomy'; + /** + * The admin body class used for the post type. + * + * @var string + */ + public $admin_body_class = 'acf-admin-taxonomies'; + /** + * The name of the store used for the post type. + * + * @var string + */ + public $store = 'taxonomies'; + /** + * Constructor. + * @since 6.2 + */ + public function __construct() + { + } + /** + * Current screen actions for the taxonomies list admin page. + * + * @since 6.1 + * @phpstan-return void + */ + public function current_screen() + { + } + /** + * Add any menu items required for taxonomies. + * + * @since 6.1 + */ + public function admin_menu() + { + } + /** + * Customizes the admin table columns. + * + * @date 1/4/20 + * @since 5.9.0 + * + * @param array $_columns The columns array. + * @return array + */ + public function admin_table_columns($_columns) + { + } + /** + * Renders a specific admin table column. + * + * @date 17/4/20 + * @since 5.9.0 + * + * @param string $column_name The name of the column to display. + * @param array $post The main ACF post array. + * @return void + */ + public function render_admin_table_column($column_name, $post) + { + } + /** + * Renders the field groups attached to the taxonomy in the list table. + * + * @since 6.1 + * + * @param array $taxonomy The main taxonomy array. + * @return void + * @phpstan-return void + */ + public function render_admin_table_column_field_groups($taxonomy) + { + } + /** + * Renders the post types attached to the taxonomy in the list table. + * + * @since 6.1 + * + * @param array $taxonomy The main taxonomy array. + * @return void + * @phpstan-return void + */ + public function render_admin_table_column_post_types($taxonomy) + { + } + /** + * Renders the number of terms created for the taxonomy in the list table. + * + * @since 6.1 + * + * @param array $taxonomy The main taxonomy array. + * @return void + * @phpstan-return void + */ + public function render_admin_table_column_num_terms($taxonomy) + { + } + /** + * Gets the translated action notice text for list table actions (activate, deactivate, sync, etc.). + * + * @since 6.1 + * + * @param string $action The action being performed. + * @param integer $count The number of items the action was performed on. + * @return string + */ + public function get_action_notice_text($action, $count = 1) + { + } + /** + * Returns the registration error state. + * + * @since 6.1 + * + * @return string + */ + public function get_registration_error_state() + { + } + } + /** + * ACF Admin Field Group Class + * + * All the logic for editing a taxonomy. + */ + class ACF_Admin_Taxonomy extends \ACF_Admin_Internal_Post_Type + { + /** + * The slug for the internal post type. + * + * @since 6.1 + * @var string + */ + public $post_type = 'acf-taxonomy'; + /** + * The admin body class used for the post type. + * + * @since 6.1 + * @var string + */ + public $admin_body_class = 'acf-admin-single-taxonomy'; + /** + * This function will customize the message shown when editing a field group + * + * @since 5.0.0 + * + * @param array $messages Post type messages. + * @return array + */ + public function post_updated_messages($messages) + { + } + /** + * Renders the post type created message. + * + * @since 6.1 + * + * @param boolean $created True if the post was just created. + * @return string + */ + public function taxonomy_saved_message($created = \false) + { + } + /** + * Enqueues any scripts necessary for internal post type. + * + * @since 5.0.0 + */ + public function admin_enqueue_scripts() + { + } + /** + * Sets up all functionality for the taxonomy edit page to work. + * + * @since 3.1.8 + */ + public function admin_head() + { + } + /** + * This action will allow ACF to render metaboxes after the title. + */ + public function edit_form_after_title() + { + } + /** + * This function will add extra HTML to the acf form data element + * + * @since 5.3.8 + * + * @param array $args Arguments array to pass through to action. + * @return void + */ + public function form_data($args) + { + } + /** + * This function will append extra l10n strings to the acf JS object + * + * @since 5.3.8 + * + * @param array $l10n The array of translated strings. + * @return array $l10n + */ + public function admin_l10n($l10n) + { + } + /** + * Admin footer third party hook support + * + * @since 5.3.2 + */ + public function admin_footer() + { + } + /** + * Screen settings html output + * + * @since 3.6.0 + * + * @param string $html Current screen settings HTML. + * @return string $html + */ + public function screen_settings($html) + { + } + /** + * Sets the "Edit Field Group" screen to use a one-column layout. + * + * @param integer $columns Number of columns for layout. + * @return integer + */ + public function screen_layout($columns = 0) + { + } + /** + * Force basic settings to always be visible + * + * @param array $hidden_metaboxes The metaboxes hidden on this page. + * @return array + */ + public function force_basic_settings($hidden_metaboxes) + { + } + /** + * Force advanced settings to be visible + * + * @param array $hidden_metaboxes The metaboxes hidden on this page. + * @return array + */ + public function force_advanced_settings($hidden_metaboxes) + { + } + /** + * This function will customize the publish metabox + * + * @since 5.2.9 + */ + public function post_submitbox_misc_actions() + { + } + /** + * Saves taxonomy data. + * + * @since 1.0.0 + * + * @param integer $post_id The post ID. + * @param WP_Post $post The post object. + * @return integer $post_id + */ + public function save_post($post_id, $post) + { + } + /** + * Renders HTML for the 'acf-taxonomy-fields' metabox. + * + * @since 5.0.0 + */ + public function mb_basic_settings() + { + } + /** + * Renders the HTML for the 'acf-taxonomy-options' metabox. + * + * @since 5.0.0 + */ + public function mb_advanced_settings() + { + } + } + class ACF_Admin_Tool + { + /** @var string Tool name */ + var $name = ''; + /** @var string Tool title */ + var $title = ''; + /** @var string Dashicon slug */ + var $icon = ''; + /** @var boolean Redirect form to single */ + // var $redirect = false; + /** + * get_name + * + * This function will return the Tool's name + * + * @date 19/10/17 + * @since 5.6.3 + * + * @param void + * @return void + */ + function get_name() + { + } + /** + * get_title + * + * This function will return the Tool's title + * + * @date 19/10/17 + * @since 5.6.3 + * + * @param void + * @return void + */ + function get_title() + { + } + /** + * get_url + * + * This function will return the Tool's title + * + * @date 19/10/17 + * @since 5.6.3 + * + * @param void + * @return void + */ + function get_url() + { + } + /** + * is_active + * + * This function will return true if the tool is active + * + * @date 19/10/17 + * @since 5.6.3 + * + * @param void + * @return boolean + */ + function is_active() + { + } + /** + * This function will setup the class functionality + * + * @type function + * @date 27/6/17 + * @since 5.6.0 + * + * @param void + * @return void + */ + function __construct() + { + } + /** + * initialize + * + * This function will initialize the admin tool + * + * @date 10/10/17 + * @since 5.6.3 + * + * @param void + * @return void + */ + function initialize() + { + } + /** + * load + * + * This function is called during the admin page load + * + * @date 10/10/17 + * @since 5.6.3 + * + * @param void + * @return void + */ + function load() + { + } + /** + * html + * + * This function will output the metabox HTML + * + * @date 10/10/17 + * @since 5.6.3 + * + * @param void + * @return void + */ + function html() + { + } + /** + * submit + * + * This function will run when the tool's form has been submit + * + * @date 10/10/17 + * @since 5.6.3 + * + * @param void + * @return void + */ + function submit() + { + } + } + class ACF_Admin_Tool_Export extends \ACF_Admin_Tool + { + /** @var string View context */ + var $view = ''; + /** @var array Export data */ + var $json = ''; + /** + * initialize + * + * This function will initialize the admin tool + * + * @date 10/10/17 + * @since 5.6.3 + * + * @param void + * @return void + */ + function initialize() + { + } + /** + * submit + * + * This function will run when the tool's form has been submit + * + * @date 10/10/17 + * @since 5.6.3 + * + * @param void + * @return void + */ + function submit() + { + } + /** + * submit_download + * + * description + * + * @date 17/10/17 + * @since 5.6.3 + * + * @param void + * @return void + */ + function submit_download() + { + } + /** + * submit_generate + * + * description + * + * @date 17/10/17 + * @since 5.6.3 + * + * @param void + * @return void + */ + function submit_generate() + { + } + /** + * load + * + * description + * + * @date 21/10/17 + * @since 5.6.3 + * + * @param void + * @return void + */ + function load() + { + } + /** + * html + * + * This function will output the metabox HTML + * + * @date 10/10/17 + * @since 5.6.3 + * + * @param void + * @return void + */ + function html() + { + } + /** + * Renders the checkboxes to select items to export. + * + * @since 5.6.3 + */ + public function html_field_selection() + { + } + /** + * Renders the side panel for selecting ACF items to export via PHP. + * + * @since 5.6.3 + */ + public function html_panel_selection() + { + } + /** + * html_archive + * + * description + * + * @date 20/10/17 + * @since 5.6.3 + * + * @param void + * @return void + */ + function html_archive() + { + } + /** + * Renders the PHP export screen. + * + * @since 5.6.3 + */ + public function html_single() + { + } + /** + * Generates the HTML for the PHP export functionality. + * + * @since 5.6.3 + */ + public function html_generate() + { + } + /** + * Return an array of keys that have been selected in the export tool. + * + * @since 5.6.3 + * + * @return array|boolean + */ + public function get_selected_keys() + { + } + /** + * Returns the JSON data for given $_POST args. + * + * @since 5.6.3 + * + * @return array|boolean + */ + public function get_selected() + { + } + } + class ACF_Admin_Tool_Import extends \ACF_Admin_Tool + { + /** + * initialize + * + * This function will initialize the admin tool + * + * @date 10/10/17 + * @since 5.6.3 + * + * @param void + * @return void + */ + function initialize() + { + } + /** + * html + * + * This function will output the metabox HTML + * + * @date 10/10/17 + * @since 5.6.3 + * + * @param void + * @return void + */ + function html() + { + } + /** + * Imports the selected ACF posts and returns an admin notice on completion. + * + * @since 5.6.3 + * + * @return ACF_Admin_Notice + */ + public function submit() + { + } + /** + * Handles the import of CPTUI post types and taxonomies. + * + * @since 6.1 + * + * @param array $import_args What to import. + * @return ACF_Admin_Notice + */ + public function import_cpt_ui($import_args) + { + } + } + class ACF_Ajax + { + /** @var string The AJAX action name. */ + var $action = ''; + /** @var array The $_REQUEST data. */ + var $request; + /** @var boolean Prevents access for non-logged in users. */ + var $public = \false; + /** + * __construct + * + * Sets up the class functionality. + * + * @date 31/7/18 + * @since 5.7.2 + * + * @param void + * @return void + */ + function __construct() + { + } + /** + * has + * + * Returns true if the request has data for the given key. + * + * @date 31/7/18 + * @since 5.7.2 + * + * @param string $key The data key. + * @return boolean + */ + function has($key = '') + { + } + /** + * get + * + * Returns request data for the given key. + * + * @date 31/7/18 + * @since 5.7.2 + * + * @param string $key The data key. + * @return mixed + */ + function get($key = '') + { + } + /** + * Sets request data for the given key. + * + * @date 31/7/18 + * @since 5.7.2 + * + * @param string $key The data key. + * @param mixed $value The data value. + * @return ACF_Ajax + */ + function set($key = '', $value = \null) + { + } + /** + * initialize + * + * Allows easy access to modifying properties without changing constructor. + * + * @date 31/7/18 + * @since 5.7.2 + * + * @param void + * @return void + */ + function initialize() + { + } + /** + * add_actions + * + * Adds the ajax actions for this response. + * + * @date 31/7/18 + * @since 5.7.2 + * + * @param void + * @return void + */ + function add_actions() + { + } + /** + * request + * + * Callback for ajax action. Sets up properties and calls the get_response() function. + * + * @date 1/8/18 + * @since 5.7.2 + * + * @param void + * @return void + */ + function request() + { + } + /** + * Verifies the request. + * + * @date 9/3/20 + * @since 5.8.8 + * + * @param array $request The request args. + * @return bool|WP_Error True on success, WP_Error on fail. + */ + function verify_request($request) + { + } + /** + * get_response + * + * Returns the response data to sent back. + * + * @date 31/7/18 + * @since 5.7.2 + * + * @param array $request The request args. + * @return mixed The response data or WP_Error. + */ + function get_response($request) + { + } + /** + * send + * + * Sends back JSON based on the $response as either success or failure. + * + * @date 31/7/18 + * @since 5.7.2 + * + * @param mixed $response The response to send back. + * @return void + */ + function send($response) + { + } + /** + * Sends a JSON response for the given WP_Error object. + * + * @date 8/3/20 + * @since 5.8.8 + * + * @param WP_Error error The error object. + * @return void + * @phpstan-return never + */ + function send_error($error) + { + } + } + class ACF_Ajax_Check_Screen extends \ACF_Ajax + { + /** @var string The AJAX action name. */ + var $action = 'acf/ajax/check_screen'; + /** @var boolean Prevents access for non-logged in users. */ + var $public = \false; + /** + * Returns the response data to sent back. + * + * @since 5.7.2 + * + * @param array $request The request args. + * @return array|WP_Error The response data or WP_Error. + */ + public function get_response($request) + { + } + } + class ACF_Ajax_Local_JSON_Diff extends \ACF_Ajax + { + /** + * The AJAX action name. + * + * @var string + */ + public $action = 'acf/ajax/local_json_diff'; + /** + * Prevents access for non-logged in users. + * + * @var boolean + */ + public $public = \false; + /** + * Returns the response data to sent back. + * + * @date 31/7/18 + * @since 5.7.2 + * + * @param array $request The request args. + * @return array|WP_Error The response data or WP_Error. + */ + public function get_response($request) + { + } + } + class ACF_Ajax_Query extends \ACF_Ajax + { + /** @var boolean Prevents access for non-logged in users. */ + var $public = \true; + /** @var integer The page of results to return. */ + var $page = 1; + /** @var integer The number of results per page. */ + var $per_page = 20; + /** @var boolean Signifies whether or not this AJAX query has more pages to load. */ + var $more = \false; + /** @var string The searched term. */ + var $search = ''; + /** @var boolean Signifies whether the current query is a search. */ + var $is_search = \false; + /** @var (int|string) The post_id being edited. */ + var $post_id = 0; + /** @var array The ACF field related to this query. */ + var $field = \false; + /** + * get_response + * + * Returns the response data to sent back. + * + * @date 31/7/18 + * @since 5.7.2 + * + * @param array $request The request args. + * @return array|WP_Error The response data or WP_Error. + */ + function get_response($request) + { + } + /** + * init_request + * + * Called at the beginning of a request to setup properties. + * + * @date 23/5/19 + * @since 5.8.1 + * + * @param array $request The request args. + * @return void + */ + function init_request($request) + { + } + /** + * get_args + * + * Returns an array of args for this query. + * + * @date 31/7/18 + * @since 5.7.2 + * + * @param array $request The request args. + * @return array + */ + function get_args($request) + { + } + /** + * get_results + * + * Returns an array of results for the given args. + * + * @date 31/7/18 + * @since 5.7.2 + * + * @param array $args The query args. + * @return array + */ + function get_results($args) + { + } + /** + * get_result + * + * Returns a single result for the given item object. + * + * @date 31/7/18 + * @since 5.7.2 + * + * @param mixed $item A single item from the queried results. + * @return array An array containing "id" and "text". + */ + function get_result($item) + { + } + } + class ACF_Ajax_Query_Users extends \ACF_Ajax_Query + { + /** @var string The AJAX action name. */ + var $action = 'acf/ajax/query_users'; + /** + * Verifies the request. + * + * @since 6.3.2 + * + * @param array $request The request args. + * @return bool|WP_Error True on success, WP_Error on fail. + */ + public function verify_request($request) + { + } + /** + * init_request + * + * Called at the beginning of a request to setup properties. + * + * @date 23/5/19 + * @since 5.8.1 + * + * @param array $request The request args. + * @return void + */ + function init_request($request) + { + } + /** + * get_args + * + * Returns an array of args for this query. + * + * @date 31/7/18 + * @since 5.7.2 + * + * @param array $request The request args. + * @return array + */ + function get_args($request) + { + } + /** + * Prepares args for the get_results() method. + * + * @date 23/3/20 + * @since 5.8.9 + * + * @param array args The query args. + * @return array + */ + function prepare_args($args) + { + } + /** + * get_results + * + * Returns an array of results for the given args. + * + * @date 31/7/18 + * @since 5.7.2 + * + * @param array args The query args. + * @return array + */ + function get_results($args) + { + } + /** + * get_result + * + * Returns a single result for the given item object. + * + * @date 31/7/18 + * @since 5.7.2 + * + * @param mixed $item A single item from the queried results. + * @return string + */ + function get_result($user) + { + } + /** + * Filters the WP_User_Query search columns. + * + * @date 9/3/20 + * @since 5.8.8 + * + * @param array $columns An array of column names to be searched. + * @param string $search The search term. + * @param WP_User_Query $WP_User_Query The WP_User_Query instance. + * @return array + */ + function filter_search_columns($columns, $search, $WP_User_Query) + { + } + } + class ACF_Ajax_Upgrade extends \ACF_Ajax + { + /** @var string The AJAX action name */ + var $action = 'acf/ajax/upgrade'; + /** + * Returns the response data to sent back. + * + * @since 5.7.2 + * + * @param array $request The request args. + * @return boolean|WP_Error True if successful, or WP_Error on failure. + */ + public function get_response($request) + { + } + } + class ACF_Ajax_User_Setting extends \ACF_Ajax + { + /** + * The AJAX action name. + * + * @var string + */ + public $action = 'acf/ajax/user_setting'; + /** + * Prevents access for non-logged in users. + * + * @var boolean + */ + public $public = \false; + /** + * get_response + * + * Returns the response data to sent back. + * + * @date 31/7/18 + * @since 5.7.2 + * + * @param array $request The request args. + * @return mixed The response data or WP_Error. + */ + public function get_response($request) + { + } + } + class ACF_Assets + { + /** + * Storage for i18n data. + * + * @since 5.6.9 + * @var array + */ + public $text = array(); + /** + * Storage for l10n data. + * + * @since 5.6.9 + * @var array + */ + public $data = array(); + /** + * Constructor. + * + * @date 10/4/18 + * @since 5.6.9 + * + * @param void + * @return void + */ + public function __construct() + { + } + /** + * Magic __call method for backwards compatibility. + * + * @date 10/4/20 + * @since 5.9.0 + * + * @param string $name The method name. + * @param array $arguments The array of arguments. + * @return mixed + */ + public function __call($name, $arguments) + { + } + /** + * Appends an array of i18n data. + * + * @date 13/4/18 + * @since 5.6.9 + * + * @param array $text An array of text for i18n. + * @return void + */ + public function add_text($text) + { + } + /** + * Appends an array of l10n data. + * + * @date 13/4/18 + * @since 5.6.9 + * + * @param array $data An array of data for l10n. + * @return void + */ + public function add_data($data) + { + } + /** + * Registers the ACF scripts and styles. + * + * @date 10/4/18 + * @since 5.6.9 + * + * @param void + * @return void + */ + public function register_scripts() + { + } + /** + * Enqueues a script and sets up actions for priting supplemental scripts. + * + * @date 27/4/20 + * @since 5.9.0 + * + * @param string $name The script name. + * @return void + */ + public function enqueue_script($name) + { + } + /** + * Enqueues a style. + * + * @date 27/4/20 + * @since 5.9.0 + * + * @param string $name The style name. + * @return void + */ + public function enqueue_style($name) + { + } + /** + * Extends the add_action() function with two additional features: + * 1. Renames $action depending on the current page (customizer, login, front-end). + * 2. Alters the priotiry or calls the method directly if the action has already passed. + * + * @date 28/4/20 + * @since 5.9.0 + * + * @param string $action The action name. + * @param string $method The method name. + * @param integer $priority See add_action(). + * @param integer $accepted_args See add_action(). + * @return void + */ + public function add_action($action, $method, $priority = 10, $accepted_args = 1) + { + } + /** + * Generic controller for enqueuing scripts and styles. + * + * @date 28/4/20 + * @since 5.9.0 + * + * @param array $args { + * @type bool $uploader Whether or not to enqueue uploader scripts. + * } + * @return void + */ + public function enqueue($args = array()) + { + } + /** + * Enqueues the scripts and styles needed for the WP media uploader. + * + * @date 27/10/2014 + * @since 5.0.9 + * + * @param void + * @return void + * @phpstan-return void + */ + public function enqueue_uploader() + { + } + /** + * Enqueues and localizes scripts. + * + * @since 5.9.0 + * + * @return void + */ + public function enqueue_scripts() + { + } + /** + * Prints scripts in head. + * + * @date 27/4/20 + * @since 5.9.0 + * + * @param void + * @return void + */ + public function print_scripts() + { + } + /** + * Prints scripts in footer. + * + * @date 27/4/20 + * @since 5.9.0 + * + * @param void + * @return void + * @phpstan-return void + */ + public function print_footer_scripts() + { + } + /** + * Prints uploader scripts in footer. + * + * @date 11/06/2020 + * @since 5.9.0 + * + * @param void + * @return void + */ + public function print_uploader_scripts() + { + } + } + abstract class ACF_Internal_Post_Type + { + /** + * The ACF internal post type name. + * + * @var string + */ + public $post_type = ''; + /** + * The prefix for the key used in the main post array. + * + * @var string + */ + public $post_key_prefix = ''; + /** + * The cache key for a singular post. + * + * @var string + */ + public $cache_key = ''; + /** + * The cache key for a collection of posts. + * + * @var string + */ + public $cache_key_plural = ''; + /** + * The hook name for a singular post. + * + * @var string + */ + public $hook_name = ''; + /** + * The hook name for a collection of posts. + * + * @var string + */ + public $hook_name_plural = ''; + /** + * The name of the store used for the post type. + * + * @var string + */ + public $store = ''; + /** + * Constructs the class. + */ + public function __construct() + { + } + /** + * Get an ACF CPT object as an array. + * + * @since 6.1 + * + * @param integer|WP_Post $id The post ID being queried. + * @return array|boolean The main ACF array for the post, or false on failure. + */ + public function get_post($id = 0) + { + } + /** + * Retrieves raw post data for the given identifier. + * + * @since 6.1 + * + * @param integer|string $id The field ID, key or name. + * @return array|false The field group array, or false on failure. + */ + public function get_raw_post($id = 0) + { + } + /** + * Retrieves the WP_Post object for an ACF internal CPT. + * + * @since 6.1 + * + * @param integer|string $id The post ID, key, or name. + * @return WP_Post|bool The post object, or false on failure. + */ + public function get_post_object($id = 0) + { + } + /** + * Returns true if the given identifier is an ACF post key. + * + * @since 6.1 + * + * @param string $id The identifier. + * @return boolean + */ + public function is_post_key($id = '') + { + } + /** + * Validates an ACF internal post type. + * + * @since 6.1 + * + * @param array $post The main post array. + * @return array + */ + public function validate_post($post = array()) + { + } + /** + * Validates post type values before allowing save from the global $_POST object. + * Errors are added to the form using acf_add_internal_post_type_validation_error(). + * + * @since 6.1 + */ + public function ajax_validate_values() + { + } + /** + * Ensures the given ACF post is valid. + * + * @since 6.1 + * + * @param array $post The main post array. + * @return array + */ + public function get_valid_post($post = \false) + { + } + /** + * Gets the default settings array for an ACF post type. + * + * @return array + */ + public function get_settings_array() + { + } + /** + * Translates an ACF post. + * + * @since 6.1 + * + * @param array $post The field group array. + * @return array + */ + public function translate_post($post = array()) + { + } + /** + * Returns an array of ACF posts for the given $filter. + * + * @since 6.1 + * + * @param array $filter An array of args to filter by. + * @return array + */ + public function get_posts($filter = array()) + { + } + /** + * Returns an array of raw ACF post data. + * + * @since 6.1 + * + * @return array + */ + public function get_raw_posts() + { + } + /** + * Filter the posts returned by $this->get_posts(). + * + * @since 6.1 + * + * @param array $posts An array of posts to filter. + * @param array $args An array of args to filter by. + * @return array + */ + public function filter_posts($posts, $args = array()) + { + } + /** + * Updates an ACF post. + * + * @since 6.1 + * + * @param array $post The ACF post to update. + * @return array + */ + public function update_post($post) + { + } + /** + * Allows full control over ACF post slugs. + * + * @since 6.1 + * + * @param string $slug The post slug. + * @param integer $post_ID Post ID. + * @param string $post_status The post status. + * @param string $post_type Post type. + * @param integer $post_parent Post parent ID. + * @param string $original_slug The original post slug. + * @return string + */ + public function apply_unique_post_slug($slug, $post_ID, $post_status, $post_type, $post_parent, $original_slug) + { + } + /** + * Deletes all caches for this ACF post. + * + * @since 6.1 + * + * @param array $post The ACF post array. + * @return void + */ + public function flush_post_cache($post) + { + } + /** + * Deletes an ACF post. + * + * @since 6.1 + * + * @param integer|string $id The ID of the ACF post to delete. + * @return boolean + */ + public function delete_post($id = 0) + { + } + /** + * Trashes an ACF post. + * + * @since 6.1 + * + * @param integer|string $id The ID of the ACF post to trash. + * @return boolean + */ + public function trash_post($id = 0) + { + } + /** + * Restores an ACF post from the trash. + * + * @since 6.1 + * + * @param integer|string $id The ID of the ACF post to untrash. + * @return boolean + */ + public function untrash_post($id = 0) + { + } + /** + * Returns the previous post_status instead of "draft" for the ACF internal post types. + * Prior to WordPress 5.6.0, this filter was not needed as restored posts were always assigned their original status. + * + * @since 6.1 + * + * @param string $new_status The new status of the post being restored. + * @param integer $post_id The ID of the post being restored. + * @param string $previous_status The status of the post at the point where it was trashed. + * @return string + */ + public function untrash_post_status($new_status, $post_id, $previous_status) + { + } + /** + * Returns true if the given params match an ACF post. + * + * @since 6.1 + * + * @param array $post The post array to check. + * @return boolean + */ + public function is_post($post = \false) + { + } + /** + * Duplicates an ACF post. + * + * @since 6.1 + * + * @param integer|string $id The ID of the post to duplicate. + * @param integer $new_post_id Optional post ID to override. + * @return array The new ACF post array. + */ + public function duplicate_post($id = 0, $new_post_id = 0) + { + } + /** + * Activates or deactivates an ACF post. + * + * @since 6.1 + * + * @param integer|string $id The ID of the ACF post to activate/deactivate. + * @param boolean $activate True if the post should be activated. + * @return boolean + */ + public function update_post_active_status($id, $activate = \true) + { + } + /** + * Checks if the current user can edit ACF posts and returns the edit url. + * + * @since 6.1 + * + * @param integer $post_id The ACF post ID. + * @return string + */ + public function get_post_edit_link($post_id) + { + } + /** + * Returns a modified ACF post array ready for export. + * + * @since 6.1 + * + * @param array $post The ACF post array. + * @return array + */ + public function prepare_post_for_export($post = array()) + { + } + /** + * Returns a string containing PHP code that can be used to create the post in ACF. + * + * @since 6.1 + * + * @param array $post The post being exported. + * @return string + */ + public function export_post_as_php($post = array()) + { + } + /** + * Formats code used for PHP exports. + * + * @since 6.1 + * + * @param string $code The code being formatted. + * @return string + */ + public function format_code_for_export($code = '') + { + } + /** + * Prepares an ACF post for import. + * + * @since 6.1 + * + * @param array $post The ACF post array. + * @return array + */ + public function prepare_post_for_import($post) + { + } + /** + * Imports an ACF post into the database. + * + * @since 6.1 + * + * @param array $post The ACF post array. + * @return array + */ + public function import_post($post) + { + } + } + class ACF_Compatibility + { + /** + * __construct + * + * Sets up the class functionality. + * + * @date 30/04/2014 + * @since 5.0.0 + * + * @param void + * @return void + */ + function __construct() + { + } + /** + * init + * + * Adds compatibility for deprecated settings. + * + * @date 10/6/19 + * @since 5.8.1 + * + * @param void + * @return void + */ + function init() + { + } + /** + * field_wrapper_attributes + * + * Adds compatibility with deprecated field wrap attributes. + * + * @date 21/1/19 + * @since 5.7.10 + * + * @param array $wrapper The wrapper attributes array. + * @param array $field The field array. + */ + function field_wrapper_attributes($wrapper, $field) + { + } + /** + * validate_field + * + * Adds compatibility with deprecated settings + * + * @date 23/04/2014 + * @since 5.0.0 + * + * @param array $field The field array. + * @return array $field + */ + function validate_field($field) + { + } + /** + * validate_textarea_field + * + * Adds compatibility with deprecated settings + * + * @date 23/04/2014 + * @since 5.0.0 + * + * @param array $field The field array. + * @return array $field + */ + function validate_textarea_field($field) + { + } + /** + * validate_relationship_field + * + * Adds compatibility with deprecated settings + * + * @date 23/04/2014 + * @since 5.0.0 + * + * @param array $field The field array. + * @return array $field + */ + function validate_relationship_field($field) + { + } + /** + * validate_image_field + * + * Adds compatibility with deprecated settings + * + * @date 23/04/2014 + * @since 5.0.0 + * + * @param array $field The field array. + * @return array $field + */ + function validate_image_field($field) + { + } + /** + * validate_wysiwyg_field + * + * Adds compatibility with deprecated settings + * + * @date 23/04/2014 + * @since 5.0.0 + * + * @param array $field The field array. + * @return array $field + */ + function validate_wysiwyg_field($field) + { + } + /** + * validate_date_picker_field + * + * Adds compatibility with deprecated settings + * + * @date 23/04/2014 + * @since 5.0.0 + * + * @param array $field The field array. + * @return array $field + */ + function validate_date_picker_field($field) + { + } + /** + * validate_taxonomy_field + * + * Adds compatibility with deprecated settings + * + * @date 23/04/2014 + * @since 5.2.7 + * + * @param array $field The field array. + * @return array $field + */ + function validate_taxonomy_field($field) + { + } + /** + * validate_date_time_picker_field + * + * Adds compatibility with deprecated settings + * + * @date 23/04/2014 + * @since 5.2.7 + * + * @param array $field The field array. + * @return array $field + */ + function validate_date_time_picker_field($field) + { + } + /** + * validate_user_field + * + * Adds compatibility with deprecated settings + * + * @date 23/04/2014 + * @since 5.2.7 + * + * @param array $field The field array. + * @return array $field + */ + function validate_user_field($field) + { + } + /** + * This function will provide compatibility with ACF4 field groups + * + * @type function + * @date 23/04/2014 + * @since 5.0.0 + * + * @param array $field_group + * @return $field_group + */ + function validate_field_group($field_group) + { + } + /** + * validate_post_taxonomy_location_rule + * + * description + * + * @date 27/8/18 + * @since 5.7.4 + * + * @param type $var Description. Default. + * @return type Description. + */ + function validate_post_taxonomy_location_rule($rule) + { + } + } + class acf_fields + { + /** + * Contains an array of field type instances. + * @var array + */ + public $types = array(); + /** + * This function will setup the class functionality + * + * @type function + * @date 5/03/2014 + * @since 5.4.0 + * + * @param void + * @return void + */ + function __construct() + { + } + /** + * This function will register a field type instance based on a class name or instance. + * It will return the instance for further use. + * + * @since 5.4.0 + * + * @param mixed $field_class Either a class name (string) or instance of acf_field. + * @return acf_field The instance of acf_field. + */ + public function register_field_type($field_class) + { + } + /** + * This function will return a field type instance + * + * @type function + * @date 6/07/2016 + * @since 5.4.0 + * + * @param string $name + * @return mixed + */ + function get_field_type($name) + { + } + /** + * This function will return true if a field type exists + * + * @type function + * @date 6/07/2016 + * @since 5.4.0 + * + * @param string $name + * @return mixed + */ + function is_field_type($name) + { + } + /** + * This function will store a basic array of info about the field type + * to later be overriden by the above register_field_type function + * + * @type function + * @date 29/5/17 + * @since 5.6.0 + * + * @param array $info + * @return void + */ + function register_field_type_info($info) + { + } + /** + * This function will return an array of all field types + * + * @type function + * @date 6/07/2016 + * @since 5.4.0 + * + * @param string $name + * @return mixed + */ + function get_field_types() + { + } + } + class acf_field + { + // field information properties. + public $name = ''; + public $label = ''; + public $category = 'basic'; + public $description = ''; + public $doc_url = \false; + public $tutorial_url = \false; + public $preview_image = \false; + public $pro = \false; + public $defaults = array(); + public $l10n = array(); + public $public = \true; + public $show_in_rest = \true; + public $supports = array( + 'escaping_html' => \false, + // Set true when a field handles its own HTML escaping in format_value + 'required' => \true, + ); + // Additional properties used by field types + public $default_values = array(); + public $have_rows = ''; + public $width = ''; + public $height = ''; + /** + * Initializes the `acf_field` class. To initialize a field type that is + * extending this class, use the `initialize()` method in the child class instead. + * + * @since 5.0.0 + */ + public function __construct() + { + } + /** + * Initializes the field type. Overridden in child classes. + * + * @since 5.6.0 + */ + public function initialize() + { + } + /** + * Checks a function `is_callable()` before adding the filter, since + * classes that extend `acf_field` might not implement all filters. + * + * @since 5.0.0 + * + * @param string $tag The name of the filter to add the callback to. + * @param string $function_to_add The callback to be run when the filter is applied. + * @param integer $priority The priority to add the filter on. + * @param integer $accepted_args The number of args to pass to the function. + * @return void + * @phpstan-return void + */ + public function add_filter($tag = '', $function_to_add = '', $priority = 10, $accepted_args = 1) + { + } + /** + * Adds a filter specific to the current field type. + * + * @since 5.4.0 + * + * @param string $tag The name of the filter to add the callback to. + * @param string $function_to_add The callback to be run when the filter is applied. + * @param integer $priority The priority to add the filter on. + * @param integer $accepted_args The number of args to pass to the function. + * @return void + */ + public function add_field_filter($tag = '', $function_to_add = '', $priority = 10, $accepted_args = 1) + { + } + /** + * Checks a function `is_callable()` before adding the action, since + * classes that extend `acf_field` might not implement all actions. + * + * @since 5.0.0 + * + * @param string $tag The name of the action to add the callback to. + * @param string $function_to_add The callback to be run when the action is ran. + * @param integer $priority The priority to add the action on. + * @param integer $accepted_args The number of args to pass to the function. + * @return void + * @phpstan-return void + */ + public function add_action($tag = '', $function_to_add = '', $priority = 10, $accepted_args = 1) + { + } + /** + * Adds an action specific to the current field type. + * + * @since 5.4.0 + * + * @param string $tag The name of the action to add the callback to. + * @param string $function_to_add The callback to be run when the action is ran. + * @param integer $priority The priority to add the action on. + * @param integer $accepted_args The number of args to pass to the function. + * @return void + */ + public function add_field_action($tag = '', $function_to_add = '', $priority = 10, $accepted_args = 1) + { + } + /** + * Appends default settings to a field. + * Runs on `acf/validate_field/type={$this->name}`. + * + * @since 3.6 + * + * @param array $field The field array. + * @return array $field + */ + public function validate_field($field) + { + } + /** + * Append l10n text translations to an array which is later passed to JS. + * Runs on `acf/input/admin_l10n`. + * + * @since 3.6 + * + * @param array $l10n + * @return array $l10n + */ + public function input_admin_l10n($l10n) + { + } + /** + * Add additional validation for fields being updated via the REST API. + * + * @param boolean $valid The current validity booleean + * @param integer $value The value of the field + * @param array $field The field array + * @return boolean|WP_Error + */ + public function validate_rest_value($valid, $value, $field) + { + } + /** + * Return the schema array for the REST API. + * + * @param array $field + * @return array + */ + public function get_rest_schema(array $field) + { + } + /** + * Return an array of links for addition to the REST API response. Each link is an array and must have both `rel` and + * `href` keys. The `href` key must be a REST API resource URL. If a link is marked as `embeddable`, the `_embed` URL + * parameter will trigger WordPress to dispatch an internal sub request and load the object within the same request + * under the `_embedded` response property. + * + * e.g; + * [ + * [ + * 'rel' => 'acf:post', + * 'href' => 'https://example.com/wp-json/wp/v2/posts/497', + * 'embeddable' => true, + * ], + * [ + * 'rel' => 'acf:user', + * 'href' => 'https://example.com/wp-json/wp/v2/users/2', + * 'embeddable' => true, + * ], + * ] + * + * @param mixed $value The raw (unformatted) field value. + * @param string|integer $post_id + * @param array $field + * @return array + */ + public function get_rest_links($value, $post_id, array $field) + { + } + /** + * Apply basic formatting to prepare the value for default REST output. + * + * @param mixed $value + * @param string|integer $post_id + * @param array $field + * @return mixed + */ + public function format_value_for_rest($value, $post_id, array $field) + { + } + /** + * Renders the "Required" setting on the field type "Validation" settings tab. + * + * @since 6.2.5 + * + * @param array $field The field type being rendered. + * @return void + * @phpstan-return void + */ + public function render_required_setting($field) + { + } + /** + * Renders the "Allow in Bindings" setting on the field type "Presentation" settings tab. + * + * @since 6.3.6 + * + * @param array $field The field type being rendered. + * @return void + * @phpstan-return void + */ + public function render_bindings_setting($field) + { + } + } + class acf_field__accordion extends \acf_field + { + public $show_in_rest = \false; + /** + * initialize + * + * This function will setup the field type data + * + * @date 30/10/17 + * @since 5.6.3 + * + * @param void + * @return void + */ + function initialize() + { + } + /** + * render_field + * + * Create the HTML interface for your field + * + * @date 30/10/17 + * @since 5.6.3 + * + * @param array $field + * @return void + */ + function render_field($field) + { + } + /** + * Create extra options for your field. This is rendered when editing a field. + * The value of $field['name'] can be used (like bellow) to save extra data to the $field + * + * @param $field - an array holding all the field's data + * + * @type action + * @since 3.6 + * @date 23/01/13 + */ + function render_field_settings($field) + { + } + /** + * This filter is appied to the $field after it is loaded from the database + * + * @type filter + * @since 3.6 + * @date 23/01/13 + * + * @param $field - the field array holding all the field options + * + * @return $field - the field array holding all the field options + */ + function load_field($field) + { + } + } + class acf_field_button_group extends \acf_field + { + /** + * initialize() + * + * This function will setup the field type data + * + * @date 18/9/17 + * @since 5.6.3 + * + * @param void + * @return void + */ + function initialize() + { + } + /** + * Creates the field's input HTML + * + * @since 5.6.3 + * + * @param array $field The field settings array + * @phpstan-return void + */ + public function render_field($field) + { + } + /** + * render_field_settings() + * + * Creates the field's settings HTML + * + * @date 18/9/17 + * @since 5.6.3 + * + * @param array $field The field settings array + * @return void + */ + function render_field_settings($field) + { + } + /** + * Renders the field settings used in the "Validation" tab. + * + * @since 6.0 + * + * @param array $field The field settings array. + * @return void + */ + function render_field_validation_settings($field) + { + } + /** + * Renders the field settings used in the "Presentation" tab. + * + * @since 6.0 + * + * @param array $field The field settings array. + * @return void + */ + function render_field_presentation_settings($field) + { + } + /** + * This filter is appied to the $field before it is saved to the database + * + * @date 18/9/17 + * @since 5.6.3 + * + * @param array $field The field array holding all the field options + * @return $field + */ + function update_field($field) + { + } + /** + * This filter is appied to the $value after it is loaded from the db + * + * @date 18/9/17 + * @since 5.6.3 + * + * @param mixed $value The value found in the database + * @param mixed $post_id The post ID from which the value was loaded from + * @param array $field The field array holding all the field options + * @return $value + */ + function load_value($value, $post_id, $field) + { + } + /** + * This function will translate field settings + * + * @date 18/9/17 + * @since 5.6.3 + * + * @param array $field The field array holding all the field options + * @return $field + */ + function translate_field($field) + { + } + /** + * This filter is appied to the $value after it is loaded from the db and before it is returned to the template + * + * @date 18/9/17 + * @since 5.6.3 + * + * @param mixed $value The value found in the database + * @param mixed $post_id The post ID from which the value was loaded from + * @param array $field The field array holding all the field options + * @return $value + */ + function format_value($value, $post_id, $field) + { + } + /** + * Return the schema array for the REST API. + * + * @param array $field + * @return array + */ + function get_rest_schema(array $field) + { + } + } + class acf_field_checkbox extends \acf_field + { + //phpcs:ignore PSR2.Classes.PropertyDeclaration.Underscore -- backwards compatibility. + /** + * This function will setup the field type data + * + * @type function + * @date 5/03/2014 + * @since 5.0.0 + * + * @param void + * @return void + */ + function initialize() + { + } + /** + * Create the HTML interface for your field + * + * @param array $field the $field being rendered + * + * @type action + * @since 3.6 + * @date 23/01/13 + * + * @param array $field the $field being edited + * @return void + */ + function render_field($field) + { + } + /** + * description + * + * @type function + * @date 15/7/17 + * @since 5.6.0 + * + * @param int $post_id + * @return int $post_id + */ + function render_field_choices($field) + { + } + /** + * Validates values for the checkbox field + * + * @since 6.0.0 + * + * @param boolean $valid If the field is valid. + * @param mixed $value The value to validate. + * @param array $field The main field array. + * @param string $input The input element's name attribute. + * @return boolean + */ + public function validate_value($valid, $value, $field, $input) + { + } + /** + * description + * + * @type function + * @date 15/7/17 + * @since 5.6.0 + * + * @param int $post_id + * @return int $post_id + */ + function render_field_toggle($field) + { + } + /** + * description + * + * @type function + * @date 15/7/17 + * @since 5.6.0 + * + * @param int $post_id + * @return int $post_id + */ + function render_field_custom($field) + { + } + function walk($choices = array(), $args = array(), $depth = 0) + { + } + /** + * Create extra options for your field. This is rendered when editing a field. + * The value of $field['name'] can be used (like bellow) to save extra data to the $field + * + * @type action + * @since 3.6 + * @date 23/01/13 + * + * @param $field - an array holding all the field's data + */ + function render_field_settings($field) + { + } + /** + * Renders the field settings used in the "Validation" tab. + * + * @since 6.0 + * + * @param array $field The field settings array. + * @return void + */ + function render_field_validation_settings($field) + { + } + /** + * Renders the field settings used in the "Presentation" tab. + * + * @since 6.0 + * + * @param array $field The field settings array. + * @return void + */ + function render_field_presentation_settings($field) + { + } + /** + * This filter is appied to the $field before it is saved to the database + * + * @type filter + * @since 3.6 + * @date 23/01/13 + * + * @param $field - the field array holding all the field options + * @param $post_id - the field group ID (post_type = acf) + * + * @return $field - the modified field + */ + function update_field($field) + { + } + /** + * This filter is appied to the $value before it is updated in the db + * + * @type filter + * @since 3.6 + * @date 23/01/13 + * + * @param $value - the value which will be saved in the database + * @param $post_id - the post_id of which the value will be saved + * @param $field - the field array holding all the field options + * + * @return $value - the modified value + */ + function update_value($value, $post_id, $field) + { + } + /** + * This function will translate field settings + * + * @type function + * @date 8/03/2016 + * @since 5.3.2 + * + * @param array $field + * @return $field + */ + function translate_field($field) + { + } + /** + * This filter is appied to the $value after it is loaded from the db and before it is returned to the template + * + * @type filter + * @since 3.6 + * @date 23/01/13 + * + * @param mixed $value the value which was loaded from the database + * @param mixed $post_id the post_id from which the value was loaded + * @param array $field the field array holding all the field options + * + * @return mixed $value the modified value + */ + function format_value($value, $post_id, $field) + { + } + /** + * Return the schema array for the REST API. + * + * @param array $field + * @return array + */ + public function get_rest_schema(array $field) + { + } + } + class acf_field_color_picker extends \acf_field + { + /** + * This function will setup the field type data + * + * @type function + * @date 5/03/2014 + * @since 5.0.0 + * + * @param void + * @return void + */ + function initialize() + { + } + /** + * description + * + * @type function + * @date 16/12/2015 + * @since 5.3.2 + * + * @param int $post_id + * @return int $post_id + */ + function input_admin_enqueue_scripts() + { + } + /** + * Create the HTML interface for your field + * + * @param $field - an array holding all the field's data + * + * @type action + * @since 3.6 + * @date 23/01/13 + */ + function render_field($field) + { + } + /** + * Create extra options for your field. This is rendered when editing a field. + * The value of $field['name'] can be used (like bellow) to save extra data to the $field + * + * @type action + * @since 3.6 + * @date 23/01/13 + * + * @param $field - an array holding all the field's data + */ + function render_field_settings($field) + { + } + /** + * Format the value for use in templates. At this stage, the value has been loaded from the + * database and is being returned by an API function such as get_field(), the_field(), etc. + * + * @since 5.10 + * + * @param mixed $value The field value + * @param integer $post_id The post ID + * @param array $field The field array + * @return string|array + */ + public function format_value($value, $post_id, $field) + { + } + } + class acf_field_date_picker extends \acf_field + { + /** + * This function will setup the field type data + * + * @type function + * @date 5/03/2014 + * @since 5.0.0 + * + * @param void + * @return void + */ + function initialize() + { + } + /** + * description + * + * @type function + * @date 16/12/2015 + * @since 5.3.2 + * + * @param int $post_id + * @return int $post_id + * @phpstan-return void + */ + function input_admin_enqueue_scripts() + { + } + /** + * Create the HTML interface for your field + * + * @param $field - an array holding all the field's data + * + * @type action + * @since 3.6 + * @date 23/01/13 + */ + function render_field($field) + { + } + /** + * Create extra options for your field. This is rendered when editing a field. + * The value of $field['name'] can be used (like bellow) to save extra data to the $field + * + * @type action + * @since 3.6 + * @date 23/01/13 + * + * @param $field - an array holding all the field's data + */ + function render_field_settings($field) + { + } + /** + * This filter is appied to the $value after it is loaded from the db and before it is returned to the template + * + * @type filter + * @since 3.6 + * @date 23/01/13 + * + * @param mixed $value the value which was loaded from the database + * @param mixed $post_id the post_id from which the value was loaded + * @param array $field the field array holding all the field options + * + * @return mixed $value the modified value + */ + function format_value($value, $post_id, $field) + { + } + /** + * This filter is applied to the $field after it is loaded from the database + * and ensures the return and display values are set. + * + * @type filter + * @since 5.11.0 + * @date 28/09/21 + * + * @param array $field The field array holding all the field options. + * @return array + */ + public function load_field($field) + { + } + /** + * Return the schema array for the REST API. + * + * @param array $field The field array + * @return array + */ + public function get_rest_schema(array $field) + { + } + /** + * Apply basic formatting to prepare the value for default REST output. + * + * @param mixed $value + * @param string|integer $post_id + * @param array $field + * @return mixed + */ + public function format_value_for_rest($value, $post_id, array $field) + { + } + } + class acf_field_date_and_time_picker extends \acf_field + { + /** + * This function will setup the field type data + * + * @type function + * @date 5/03/2014 + * @since 5.0.0 + * + * @param void + * @return void + */ + function initialize() + { + } + /** + * description + * + * @type function + * @date 16/12/2015 + * @since 5.3.2 + * + * @param int $post_id + * @return int $post_id + * @phpstan-return void + */ + function input_admin_enqueue_scripts() + { + } + /** + * Create the HTML interface for your field + * + * @param $field - an array holding all the field's data + * + * @type action + * @since 3.6 + * @date 23/01/13 + */ + function render_field($field) + { + } + /** + * Create extra options for your field. This is rendered when editing a field. + * The value of $field['name'] can be used (like bellow) to save extra data to the $field + * + * @type action + * @since 3.6 + * @date 23/01/13 + * + * @param $field - an array holding all the field's data + */ + function render_field_settings($field) + { + } + /** + * This filter is appied to the $value after it is loaded from the db and before it is returned to the template + * + * @type filter + * @since 3.6 + * + * @param mixed $value The value which was loaded from the database + * @param mixed $post_id The post_id from which the value was loaded + * @param array $field The field array holding all the field options + * @return mixed $value The modified value + */ + public function format_value($value, $post_id, $field) + { + } + /** + * This filter is applied to the $field after it is loaded from the database + * and ensures the return and display values are set. + * + * @type filter + * @since 5.11.0 + * + * @param array $field The field array holding all the field options. + * @return array + */ + public function load_field($field) + { + } + /** + * Return the schema array for the REST API. + * + * @param array $field + * @return array + */ + public function get_rest_schema(array $field) + { + } + } + class acf_field_email extends \acf_field + { + /** + * This function will setup the field type data + * + * @type function + * @date 5/03/2014 + * @since 5.0.0 + * + * @param void + * @return void + */ + function initialize() + { + } + /** + * Create the HTML interface for your field + * + * @param $field - an array holding all the field's data + * + * @type action + * @since 3.6 + * @date 23/01/13 + */ + function render_field($field) + { + } + /** + * Create extra options for your field. This is rendered when editing a field. + * The value of $field['name'] can be used (like bellow) to save extra data to the $field + * + * @type action + * @since 3.6 + * @date 23/01/13 + * + * @param $field - an array holding all the field's data + */ + function render_field_settings($field) + { + } + /** + * Renders the field settings used in the "Presentation" tab. + * + * @since 6.0 + * + * @param array $field The field settings array. + * @return void + */ + function render_field_presentation_settings($field) + { + } + /** + * Validate the email value. If this method returns TRUE, the input value is valid. If + * FALSE or a string is returned, the input value is invalid and the user is shown a + * notice. If a string is returned, the string is show as the message text. + * + * @param boolean $valid Whether the value is valid. + * @param mixed $value The field value. + * @param array $field The field array. + * @param string $input The request variable name for the inbound field. + * @return boolean|string + */ + public function validate_value($valid, $value, $field, $input) + { + } + /** + * Return the schema array for the REST API. + * + * @param array $field + * @return array + */ + public function get_rest_schema(array $field) + { + } + } + class acf_field_file extends \acf_field + { + /** + * This function will setup the field type data + * + * @type function + * @date 5/03/2014 + * @since 5.0.0 + * + * @param void + * @return void + */ + function initialize() + { + } + /** + * description + * + * @type function + * @date 16/12/2015 + * @since 5.3.2 + * + * @param int $post_id + * @return int $post_id + */ + function input_admin_enqueue_scripts() + { + } + /** + * Create the HTML interface for your field + * + * @param $field - an array holding all the field's data + * + * @type action + * @since 3.6 + * @date 23/01/13 + */ + function render_field($field) + { + } + /** + * Create extra options for your field. This is rendered when editing a field. + * The value of $field['name'] can be used (like bellow) to save extra data to the $field + * + * @type action + * @since 3.6 + * @date 23/01/13 + * + * @param $field - an array holding all the field's data + */ + function render_field_settings($field) + { + } + /** + * Renders the field settings used in the "Validation" tab. + * + * @since 6.0 + * + * @param array $field The field settings array. + * @return void + */ + function render_field_validation_settings($field) + { + } + /** + * This filter is appied to the $value after it is loaded from the db and before it is returned to the template + * + * @type filter + * @since 3.6 + * @date 23/01/13 + * + * @param mixed $value the value which was loaded from the database + * @param mixed $post_id the post_id from which the value was loaded + * @param array $field the field array holding all the field options + * + * @return mixed $value the modified value + */ + function format_value($value, $post_id, $field) + { + } + /** + * description + * + * @type function + * @date 27/01/13 + * @since 3.6.0 + * + * @param array $vars + * @return $vars + */ + function get_media_item_args($vars) + { + } + /** + * This filter is appied to the $value before it is updated in the db + * + * @type filter + * @since 3.6 + * @date 23/01/13 + * + * @param $value - the value which will be saved in the database + * @param $post_id - the post_id of which the value will be saved + * @param $field - the field array holding all the field options + * + * @return $value - the modified value + */ + function update_value($value, $post_id, $field) + { + } + /** + * validate_value + * + * This function will validate a basic file input + * + * @type function + * @date 11/02/2014 + * @since 5.0.0 + * + * @param int $post_id + * @return int $post_id + */ + function validate_value($valid, $value, $field, $input) + { + } + /** + * Validates file fields updated via the REST API. + * + * @param boolean $valid The current validity booleean + * @param integer $value The value of the field + * @param array $field The field array + * @return boolean|WP_Error + */ + public function validate_rest_value($valid, $value, $field) + { + } + /** + * Return the schema array for the REST API. + * + * @param array $field + * @return array + */ + public function get_rest_schema(array $field) + { + } + /** + * Apply basic formatting to prepare the value for default REST output. + * + * @param mixed $value + * @param string|integer $post_id + * @param array $field + * @return mixed + */ + public function format_value_for_rest($value, $post_id, array $field) + { + } + } + class acf_field_google_map extends \acf_field + { + /** + * This function will setup the field type data + * + * @type function + * @date 5/03/2014 + * @since 5.0.0 + * + * @param void + * @return void + */ + function initialize() + { + } + /** + * description + * + * @type function + * @date 16/12/2015 + * @since 5.3.2 + * + * @param int $post_id + * @return int $post_id + * @phpstan-return void + */ + function input_admin_enqueue_scripts() + { + } + /** + * Create the HTML interface for your field + * + * @param $field - an array holding all the field's data + * + * @type action + * @since 3.6 + * @date 23/01/13 + */ + function render_field($field) + { + } + /** + * Create extra options for your field. This is rendered when editing a field. + * The value of $field['name'] can be used (like bellow) to save extra data to the $field + * + * @type action + * @since 3.6 + * @date 23/01/13 + * + * @param $field - an array holding all the field's data + */ + function render_field_settings($field) + { + } + /** + * load_value + * + * Filters the value loaded from the database. + * + * @date 16/10/19 + * @since 5.8.1 + * + * @param mixed $value The value loaded from the database. + * @param mixed $post_id The post ID where the value is saved. + * @param array $field The field settings array. + * @return array|false + */ + function load_value($value, $post_id, $field) + { + } + /** + * This filter is appied to the $value before it is updated in the db + * + * @type filter + * @since 3.6 + * @date 23/01/13 + * + * @param $value - the value which will be saved in the database + * @param $post_id - the post_id of which the value will be saved + * @param $field - the field array holding all the field options + * + * @return $value - the modified value + */ + function update_value($value, $post_id, $field) + { + } + /** + * Return the schema array for the REST API. + * + * @param array $field + * @return array + */ + public function get_rest_schema(array $field) + { + } + /** + * Apply basic formatting to prepare the value for default REST output. + * + * @param mixed $value + * @param string|integer $post_id + * @param array $field + * @return mixed + */ + public function format_value_for_rest($value, $post_id, array $field) + { + } + } + class acf_field__group extends \acf_field + { + /** + * This function will setup the field type data + * + * @type function + * @date 5/03/2014 + * @since 5.0.0 + * + * @param void + * @return void + */ + function initialize() + { + } + /** + * This filter is appied to the $field after it is loaded from the database + * + * @type filter + * @since 3.6 + * @date 23/01/13 + * + * @param $field - the field array holding all the field options + * + * @return $field - the field array holding all the field options + */ + function load_field($field) + { + } + /** + * This filter is applied to the $value after it is loaded from the db + * + * @type filter + * @since 3.6 + * @date 23/01/13 + * + * @param mixed $value the value found in the database + * @param mixed $post_id the post_id from which the value was loaded + * @param array $field the field array holding all the field options + * @return $value + */ + function load_value($value, $post_id, $field) + { + } + /** + * This filter is appied to the $value after it is loaded from the db and before it is returned to the template + * + * @type filter + * @since 3.6 + * + * @param mixed $value The value which was loaded from the database. + * @param mixed $post_id The $post_id from which the value was loaded. + * @param array $field The field array holding all the field options. + * @param boolean $escape_html Should the field return a HTML safe formatted value. + * @return mixed the modified value + */ + public function format_value($value, $post_id, $field, $escape_html = \false) + { + } + /** + * This filter is appied to the $value before it is updated in the db + * + * @type filter + * @since 3.6 + * @date 23/01/13 + * + * @param $value - the value which will be saved in the database + * @param $field - the field array holding all the field options + * @param $post_id - the post_id of which the value will be saved + * + * @return $value - the modified value + */ + function update_value($value, $post_id, $field) + { + } + /** + * This function will modify sub fields ready for update / load + * + * @type function + * @date 4/11/16 + * @since 5.5.0 + * + * @param array $field + * @return $field + */ + function prepare_field_for_db($field) + { + } + /** + * Create the HTML interface for your field + * + * @param $field - an array holding all the field's data + * + * @type action + * @since 3.6 + * @date 23/01/13 + * @phpstan-return void + */ + function render_field($field) + { + } + /** + * description + * + * @type function + * @date 12/07/2016 + * @since 5.4.0 + * + * @param int $post_id + * @return int $post_id + */ + function render_field_block($field) + { + } + /** + * description + * + * @type function + * @date 12/07/2016 + * @since 5.4.0 + * + * @param int $post_id + * @return int $post_id + */ + function render_field_table($field) + { + } + /** + * Create extra options for your field. This is rendered when editing a field. + * The value of $field['name'] can be used (like bellow) to save extra data to the $field + * + * @type action + * @since 3.6 + * @date 23/01/13 + * + * @param $field - an array holding all the field's data + */ + function render_field_settings($field) + { + } + /** + * description + * + * @type function + * @date 11/02/2014 + * @since 5.0.0 + * + * @param int $post_id + * @return int $post_id + */ + function validate_value($valid, $value, $field, $input) + { + } + /** + * This filter is appied to the $field before it is duplicated and saved to the database + * + * @type filter + * @since 3.6 + * @date 23/01/13 + * + * @param $field - the field array holding all the field options + * + * @return $field - the modified field + */ + function duplicate_field($field) + { + } + /** + * prepare_field_for_export + * + * Prepares the field for export. + * + * @date 11/03/2014 + * @since 5.0.0 + * + * @param array $field The field settings. + * @return array + */ + function prepare_field_for_export($field) + { + } + /** + * prepare_field_for_import + * + * Returns a flat array of fields containing all sub fields ready for import. + * + * @date 11/03/2014 + * @since 5.0.0 + * + * @param array $field The field settings. + * @return array + */ + function prepare_field_for_import($field) + { + } + /** + * Called when deleting this field's value. + * + * @date 1/07/2015 + * @since 5.2.3 + * + * @param mixed $post_id The post ID being saved + * @param string $meta_key The field name as seen by the DB + * @param array $field The field settings + * @return void + */ + function delete_value($post_id, $meta_key, $field) + { + } + /** + * delete_field + * + * Called when deleting a field of this type. + * + * @date 8/11/18 + * @since 5.8.0 + * + * @param arra $field The field settings. + * @return void + */ + function delete_field($field) + { + } + /** + * Return the schema array for the REST API. + * + * @param array $field + * @return array + */ + public function get_rest_schema(array $field) + { + } + /** + * Apply basic formatting to prepare the value for default REST output. + * + * @param mixed $value + * @param integer|string $post_id + * @param array $field + * @return array|mixed + */ + public function format_value_for_rest($value, $post_id, array $field) + { + } + } + /** + * Class acf_field_icon_picker. + */ + class acf_field_icon_picker extends \acf_field + { + /** + * Initialize icon picker field + * + * @since 6.3 + * + * @return void + */ + public function initialize() + { + } + /** + * Gets the available tabs for the icon picker field. + * + * @since 6.3 + * + * @return array + */ + public function get_tabs() + { + } + /** + * Renders an icon list tab (i.e. dashicons, custom icons). + * + * @since 6.4 + * + * @param string $tab_name The name of the tab being rendered. + * @param array $field The Icon Picker field being rendered. + * @return void + * @phpstan-return void + */ + public function render_icon_list_tab($tab_name, $field) + { + } + /** + * Renders icon picker field + * + * @since 6.3 + * + * @param object $field The ACF Field + * @return void + */ + public function render_field($field) + { + } + /** + * Renders field settings for the icon picker field. + * + * @since 6.3 + * + * @param array $field The icon picker field object. + * @return void + */ + public function render_field_settings($field) + { + } + /** + * Localizes text for Icon Picker + * + * @since 6.3 + * + * @return void + */ + public function input_admin_enqueue_scripts() + { + } + /** + * Validates the field value before it is saved into the database. + * + * @since 6.3 + * + * @param integer $valid The current validation status. + * @param mixed $value The value of the field. + * @param array $field The field array holding all the field options. + * @param string $input The corresponding input name for $_POST value. + * @return boolean true If the value is valid, false if not. + */ + public function validate_value($valid, $value, $field, $input) + { + } + /** + * format_value() + * + * This filter is appied to the $value after it is loaded from the db and before it is returned to the template + * + * @since 6.3 + * + * @param mixed $value The value which was loaded from the database. + * @param integer $post_id The $post_id from which the value was loaded. + * @param array $field The field array holding all the field options. + * @return mixed $value The modified value. + */ + public function format_value($value, $post_id, $field) + { + } + /** + * get_dashicons() + * + * This function will return an array of dashicons. + * + * @since 6.3 + * + * @return array $dashicons an array of dashicons. + */ + public function get_dashicons() + { + } + /** + * Returns the schema used by the REST API. + * + * @since 6.3 + * + * @param array $field The main field array. + * @return array + */ + public function get_rest_schema(array $field): array + { + } + /** + * Validates a value sent via the REST API. + * + * @since 6.3 + * + * @param boolean $valid The current validity boolean. + * @param array|null $value The value of the field. + * @param array $field The main field array. + * @return boolean|WP_Error + */ + public function validate_rest_value($valid, $value, $field) + { + } + } + class acf_field_image extends \acf_field + { + /** + * This function will setup the field type data + * + * @type function + * @date 5/03/2014 + * @since 5.0.0 + * + * @param void + * @return void + */ + function initialize() + { + } + /** + * description + * + * @type function + * @date 16/12/2015 + * @since 5.3.2 + * + * @param int $post_id + * @return int $post_id + */ + function input_admin_enqueue_scripts() + { + } + /** + * Renders the field HTML. + * + * @date 23/01/13 + * @since 3.6.0 + * + * @param array $field The field settings. + * @return void + */ + function render_field($field) + { + } + /** + * Create extra options for your field. This is rendered when editing a field. + * The value of $field['name'] can be used (like bellow) to save extra data to the $field + * + * @type action + * @since 3.6 + * @date 23/01/13 + * + * @param $field - an array holding all the field's data + */ + function render_field_settings($field) + { + } + /** + * Renders the field settings used in the "Validation" tab. + * + * @since 6.0 + * + * @param array $field The field settings array. + * @return void + */ + function render_field_validation_settings($field) + { + } + /** + * Renders the field settings used in the "Presentation" tab. + * + * @since 6.0 + * + * @param array $field The field settings array. + * @return void + */ + function render_field_presentation_settings($field) + { + } + /** + * This filter is appied to the $value after it is loaded from the db and before it is returned to the template + * + * @type filter + * @since 3.6 + * @date 23/01/13 + * + * @param mixed $value the value which was loaded from the database + * @param mixed $post_id the post_id from which the value was loaded + * @param array $field the field array holding all the field options + * + * @return mixed $value the modified value + */ + function format_value($value, $post_id, $field) + { + } + /** + * description + * + * @type function + * @date 27/01/13 + * @since 3.6.0 + * + * @param array $vars + * @return $vars + */ + function get_media_item_args($vars) + { + } + /** + * This filter is appied to the $value before it is updated in the db + * + * @type filter + * @since 3.6 + * @date 23/01/13 + * + * @param $value - the value which will be saved in the database + * @param $post_id - the post_id of which the value will be saved + * @param $field - the field array holding all the field options + * + * @return $value - the modified value + */ + function update_value($value, $post_id, $field) + { + } + /** + * This function will validate a basic file input + * + * @type function + * @since 5.0.0 + * + * @param boolean $valid The current validity status. + * @param mixed $value The field value. + * @param array $field The field array. + * @param string $input The name of the input in the POST object. + * @return boolean The validity status. + */ + public function validate_value($valid, $value, $field, $input) + { + } + /** + * Additional validation for the image field when submitted via REST. + * + * @param boolean $valid The current validity booleean + * @param integer $value The value of the field + * @param array $field The field array + * @return boolean|WP_Error + */ + public function validate_rest_value($valid, $value, $field) + { + } + /** + * Return the schema array for the REST API. + * + * @param array $field The field array + * @return array + */ + public function get_rest_schema(array $field) + { + } + /** + * Apply basic formatting to prepare the value for default REST output. + * + * @param mixed $value The field value + * @param string|integer $post_id The post ID + * @param array $field The field array + * @return mixed + */ + public function format_value_for_rest($value, $post_id, array $field) + { + } + } + class acf_field_link extends \acf_field + { + /** + * This function will setup the field type data + * + * @type function + * @date 5/03/2014 + * @since 5.0.0 + * + * @param void + * @return void + */ + function initialize() + { + } + /** + * description + * + * @type function + * @date 16/5/17 + * @since 5.5.13 + * + * @param int $post_id + * @return int $post_id + */ + function get_link($value = '') + { + } + /** + * Create the HTML interface for your field + * + * @param $field - an array holding all the field's data + * + * @type action + * @since 3.6 + */ + public function render_field($field) + { + } + /** + * Create extra options for your field. This is rendered when editing a field. + * The value of $field['name'] can be used (like bellow) to save extra data to the $field + * + * @type action + * @since 3.6 + * @date 23/01/13 + * + * @param $field - an array holding all the field's data + */ + function render_field_settings($field) + { + } + /** + * This filter is appied to the $value after it is loaded from the db and before it is returned to the template + * + * @type filter + * @since 3.6 + * @date 23/01/13 + * + * @param mixed $value the value which was loaded from the database + * @param mixed $post_id the post_id from which the value was loaded + * @param array $field the field array holding all the field options + * + * @return mixed $value the modified value + */ + function format_value($value, $post_id, $field) + { + } + /** + * description + * + * @type function + * @date 11/02/2014 + * @since 5.0.0 + * + * @param int $post_id + * @return int $post_id + */ + function validate_value($valid, $value, $field, $input) + { + } + /** + * This filter is appied to the $value before it is updated in the db + * + * @type filter + * @since 3.6 + * @date 23/01/13 + * + * @param $value - the value which will be saved in the database + * @param $post_id - the post_id of which the value will be saved + * @param $field - the field array holding all the field options + * + * @return $value - the modified value + */ + function update_value($value, $post_id, $field) + { + } + /** + * Return the schema array for the REST API. + * + * @param array $field + * @return array + */ + public function get_rest_schema(array $field) + { + } + } + class acf_field_message extends \acf_field + { + public $show_in_rest = \false; + /** + * This function will setup the field type data + * + * @type function + * @date 5/03/2014 + * @since 5.0.0 + * + * @param void + * @return void + */ + function initialize() + { + } + /** + * Create the HTML interface for your field + * + * @param $field - an array holding all the field's data + * + * @type action + * @since 3.6 + * @date 23/01/13 + */ + function render_field($field) + { + } + /** + * Create extra options for your field. This is rendered when editing a field. + * The value of $field['name'] can be used (like bellow) to save extra data to the $field + * + * @param $field - an array holding all the field's data + * + * @type action + * @since 3.6 + * @date 23/01/13 + */ + function render_field_settings($field) + { + } + /** + * This function will translate field settings + * + * @type function + * @date 8/03/2016 + * @since 5.3.2 + * + * @param array $field + * @return $field + */ + function translate_field($field) + { + } + /** + * This filter is appied to the $field after it is loaded from the database + * + * @type filter + * @since 3.6 + * @date 23/01/13 + * + * @param $field - the field array holding all the field options + * + * @return $field - the field array holding all the field options + */ + function load_field($field) + { + } + } + class acf_field_number extends \acf_field + { + /** + * This function will setup the field type data + * + * @type function + * @date 5/03/2014 + * @since 5.0.0 + * + * @param void + * @return void + */ + function initialize() + { + } + /** + * Create the HTML interface for your field + * + * @param $field - an array holding all the field's data + * + * @type action + * @since 3.6 + * @date 23/01/13 + */ + function render_field($field) + { + } + /** + * Create extra options for your field. This is rendered when editing a field. + * The value of $field['name'] can be used (like bellow) to save extra data to the $field + * + * @type action + * @since 3.6 + * @date 23/01/13 + * + * @param $field - an array holding all the field's data + */ + function render_field_settings($field) + { + } + /** + * Renders the field settings used in the "Validation" tab. + * + * @since 6.0 + * + * @param array $field The field settings array. + * @return void + */ + function render_field_validation_settings($field) + { + } + /** + * Renders the field settings used in the "Presentation" tab. + * + * @since 6.0 + * + * @param array $field The field settings array. + * @return void + */ + function render_field_presentation_settings($field) + { + } + /** + * description + * + * @type function + * @date 11/02/2014 + * @since 5.0.0 + * + * @param int $post_id + * @return int $post_id + */ + function validate_value($valid, $value, $field, $input) + { + } + /** + * This filter is appied to the $value before it is updated in the db + * + * @type filter + * @since 3.6 + * @date 23/01/13 + * + * @param $value - the value which will be saved in the database + * @param $field - the field array holding all the field options + * @param $post_id - the post_id of which the value will be saved + * + * @return $value - the modified value + */ + function update_value($value, $post_id, $field) + { + } + /** + * Return the schema array for the REST API. + * + * @param array $field + * @return array + */ + public function get_rest_schema(array $field) + { + } + /** + * Apply basic formatting to prepare the value for default REST output. + * + * @param mixed $value + * @param string|integer $post_id + * @param array $field + * @return mixed + */ + public function format_value_for_rest($value, $post_id, array $field) + { + } + } + class acf_field_oembed extends \acf_field + { + /** + * This function will setup the field type data + * + * @type function + * @date 5/03/2014 + * @since 5.0.0 + * + * @param void + * @return void + */ + function initialize() + { + } + /** + * This function will prepare the field for input + * + * @type function + * @date 14/2/17 + * @since 5.5.8 + * + * @param array $field + * @return int + */ + function prepare_field($field) + { + } + /** + * Attempts to fetch the HTML for the provided URL using oEmbed. + * + * @date 24/01/2014 + * @since 5.0.0 + * + * @param string $url The URL that should be embedded. + * @param integer|string $width Optional maxwidth value passed to the provider URL. + * @param integer|string $height Optional maxheight value passed to the provider URL. + * @return string|false The embedded HTML on success, false on failure. + */ + function wp_oembed_get($url = '', $width = 0, $height = 0) + { + } + /** + * Returns AJAX results for the oEmbed field. + * + * @since 5.0.0 + * + * @return void + * @phpstan-return never + */ + public function ajax_query() + { + } + /** + * This function will return an array of data formatted for use in a select2 AJAX response + * + * @type function + * @date 15/10/2014 + * @since 5.0.9 + * + * @param array $options + * @return array + */ + function get_ajax_query($args = array()) + { + } + /** + * Renders the oEmbed field. + * + * @since 3.6 + * + * @param array $field The field settings array. + * @return void + */ + public function render_field($field) + { + } + /** + * Create extra options for your field. This is rendered when editing a field. + * The value of $field['name'] can be used (like bellow) to save extra data to the $field + * + * @param $field - an array holding all the field's data + * + * @type action + * @since 3.6 + * @date 23/01/13 + */ + function render_field_settings($field) + { + } + /** + * This filter is appied to the $value after it is loaded from the db and before it is returned to the template. + * + * @type filter + * @since 3.6 + * + * @param mixed $value The value which was loaded from the database. + * @param mixed $post_id The $post_id from which the value was loaded. + * @param array $field The field array holding all the field options. + * @return mixed the modified value + */ + public function format_value($value, $post_id, $field) + { + } + /** + * Return the schema array for the REST API. + * + * @param array $field + * @return array + */ + public function get_rest_schema(array $field) + { + } + } + /** + * This class and field type has been deprecated since ACF 6.3.2 and will not output anything. + */ + class acf_field_output extends \acf_field + { + /** + * This function will setup the field type data + * + * @since 5.0.0 + */ + public function initialize() + { + } + /** + * The render field call. Deprecated since ACF 6.3.2. + * + * @param array $field The $field being edited + * @return false + */ + public function render_field($field) + { + } + } + class acf_field_page_link extends \acf_field + { + /** + * This function will setup the field type data + * + * @type function + * @date 5/03/2014 + * @since 5.0.0 + * + * @param void + * @return void + */ + function initialize() + { + } + /** + * Filters choices in page link conditions. + * + * @since 6.3 + * + * @param array $choices The selected choice. + * @param array $conditional_field The conditional field settings object. + * @param string $rule_value The rule value. + * @return array + */ + public function render_field_page_link_conditional_choices($choices, $conditional_field, $rule_value) + { + } + /** + * Returns AJAX results for the Page Link field. + * + * @since 5.0.0 + * + * @return void + */ + public function ajax_query() + { + } + /** + * This function will return an array containing id, text and maybe description data + * + * @type function + * @date 7/07/2016 + * @since 5.4.0 + * + * @param mixed $id + * @param string $text + * @return array + */ + function get_post_result($id, $text) + { + } + /** + * This function returns the HTML for a result + * + * @type function + * @date 1/11/2013 + * @since 5.0.0 + * + * @param object $post + * @param array $field + * @param int $post_id the post_id to which this value is saved to + * @return string + */ + function get_post_title($post, $field, $post_id = 0, $is_search = 0) + { + } + /** + * This function will return an array of posts for a given field value + * + * @type function + * @date 13/06/2014 + * @since 5.0.0 + * + * @param array $value + * @return $value + */ + function get_posts($value, $field) + { + } + /** + * Renders the Page Link field. + * + * @since 3.6 + * + * @param array $field The field settings array. + * @return void + */ + public function render_field($field) + { + } + /** + * Create extra options for your field. This is rendered when editing a field. + * The value of $field['name'] can be used (like bellow) to save extra data to the $field + * + * @type action + * @since 3.6 + * @date 23/01/13 + * + * @param $field - an array holding all the field's data + */ + function render_field_settings($field) + { + } + /** + * Renders the field settings used in the "Validation" tab. + * + * @since 6.0 + * + * @param array $field The field settings array. + * @return void + */ + function render_field_validation_settings($field) + { + } + /** + * This filter is appied to the $value after it is loaded from the db and before it is returned to the template + * + * @type filter + * @since 3.6 + * @date 23/01/13 + * + * @param mixed $value the value which was loaded from the database + * @param mixed $post_id the post_id from which the value was loaded + * @param array $field the field array holding all the field options + * + * @return mixed $value the modified value + */ + function format_value($value, $post_id, $field) + { + } + /** + * This filter is appied to the $value before it is updated in the db + * + * @type filter + * @since 3.6 + * @date 23/01/13 + * + * @param $value - the value which will be saved in the database + * @param $post_id - the post_id of which the value will be saved + * @param $field - the field array holding all the field options + * + * @return $value - the modified value + */ + function update_value($value, $post_id, $field) + { + } + /** + * Validates page link fields updated via the REST API. + * + * @param boolean $valid The current validity booleean + * @param integer $value The value of the field + * @param array $field The field array + * @return boolean|WP_Error + */ + public function validate_rest_value($valid, $value, $field) + { + } + /** + * Return the schema array for the REST API. + * + * @param array $field + * @return array + */ + public function get_rest_schema(array $field) + { + } + /** + * @see \acf_field::get_rest_links() + * @param mixed $value The raw (unformatted) field value. + * @param integer|string $post_id + * @param array $field + * @return array + */ + public function get_rest_links($value, $post_id, array $field) + { + } + /** + * Apply basic formatting to prepare the value for default REST output. + * + * @param mixed $value + * @param string|integer $post_id + * @param array $field + * @return mixed + */ + public function format_value_for_rest($value, $post_id, array $field) + { + } + } + class acf_field_password extends \acf_field + { + /** + * This function will setup the field type data + * + * @type function + * @date 5/03/2014 + * @since 5.0.0 + * + * @param void + * @return void + */ + function initialize() + { + } + /** + * Create the HTML interface for your field + * + * @param $field - an array holding all the field's data + * + * @type action + * @since 3.6 + * @date 23/01/13 + */ + function render_field($field) + { + } + /** + * Create extra options for your field. This is rendered when editing a field. + * The value of $field['name'] can be used (like bellow) to save extra data to the $field + * + * @type action + * @since 3.6 + * @date 23/01/13 + * + * @param $field - an array holding all the field's data + */ + function render_field_settings($field) + { + } + /** + * Renders the field settings used in the "Presentation" tab. + * + * @since 6.0 + * + * @param array $field The field settings array. + * @return void + */ + function render_field_presentation_settings($field) + { + } + } + class acf_field_post_object extends \acf_field + { + /** + * This function will setup the field type data + * + * @since 5.0.0 + */ + public function initialize() + { + } + /** + * Filters choices in post object conditions. + * + * @since 6.3 + * + * @param array $choices The selected choice. + * @param array $conditional_field The conditional field settings object. + * @param string $rule_value The rule value. + * @return array + */ + public function render_field_post_object_conditional_choices($choices, $conditional_field, $rule_value) + { + } + /** + * AJAX query handler for post object fields. + * + * @since 5.0.0 + * + * @return void + */ + public function ajax_query() + { + } + /** + * This function will return an array of data formatted for use in a select2 AJAX response + * + * @since 5.0.9 + * + * @param array $options The options being queried for the ajax request. + * @return array|boolean The AJAX response array, or false on failure. + */ + public function get_ajax_query($options = array()) + { + } + /** + * This function will return an array containing id, text and maybe description data + * + * @since 5.4.0 + * + * @param mixed $id The ID of the post result. + * @param string $text The text for the response item. + * @return array The combined result array. + */ + public function get_post_result($id, $text) + { + } + /** + * This function post object's filtered output post title + * + * @since 5.0.0 + * + * @param WP_Post $post The WordPress post. + * @param array $field The field being output. + * @param integer $post_id The post_id to which this value is saved to. + * @param integer $is_search An int-as-boolean value for whether we're performing a search. + * @param boolean $unescape Should we return an unescaped post title. + * @return string A potentially user filtered post title for the post, which may contain unsafe HTML. + */ + public function get_post_title($post, $field, $post_id = 0, $is_search = 0, $unescape = \false) + { + } + /** + * Create the HTML interface for the post object field. + * + * @since 3.6 + * + * @param array $field An array holding all the field's data. + * @return void + */ + public function render_field($field) + { + } + /** + * Create extra options for post object field. This is rendered when editing. + * The value of $field['name'] can be used (like below) to save extra data to the $field. + * + * @since 3.6 + * + * @param array $field An array holding all the field's data. + */ + public function render_field_settings($field) + { + } + /** + * Renders the field settings used in the "Validation" tab. + * + * @since 6.0 + * + * @param array $field The field settings array. + * @return void + */ + public function render_field_validation_settings($field) + { + } + /** + * Renders the field settings used in the "Advanced" tab. + * + * @since 6.2 + * + * @param array $field The field settings array. + * @return void + */ + public function render_field_advanced_settings($field) + { + } + /** + * This filter is applied to the $value after it is loaded from the db + * + * @since 3.6 + * + * @param mixed $value The value found in the database + * @param mixed $post_id The post_id from which the value was loaded + * @param array $field The field array holding all the field options + * @return mixed $value + */ + public function load_value($value, $post_id, $field) + { + } + /** + * This filter is appied to the $value after it is loaded from the db and before it is returned to the template + * + * @since 3.6 + * + * @param mixed $value The value found in the database + * @param mixed $post_id The post_id from which the value was loaded + * @param array $field The field array holding all the field options + * @return mixed $value + */ + public function format_value($value, $post_id, $field) + { + } + /** + * Filters the field value before it is saved into the database. + * + * @since 3.6 + * + * @param mixed $value The value which will be saved in the database. + * @param integer $post_id The post_id of which the value will be saved. + * @param array $field The field array holding all the field options. + * @return mixed $value The modified value. + */ + public function update_value($value, $post_id, $field) + { + } + /** + * This function will return an array of posts for a given field value + * + * @since 5.0 + * + * @param mixed $value The value of the field. + * @param array $field The field array holding all the field options. + * @return array $value An array of post objects. + */ + public function get_posts($value, $field) + { + } + /** + * Validates post object fields updated via the REST API. + * + * @since 5.11 + * + * @param boolean $valid The current validity booleean + * @param integer $value The value of the field + * @param array $field The field array + * @return boolean|WP_Error + */ + public function validate_rest_value($valid, $value, $field) + { + } + /** + * Return the schema array for the REST API. + * + * @since 5.11 + * + * @param array $field The field array. + * @return array + */ + public function get_rest_schema(array $field) + { + } + /** + * REST link attributes generator for this field. + * + * @since 5.11 + * @see \acf_field::get_rest_links() + * + * @param mixed $value The raw (unformatted) field value. + * @param integer|string $post_id The post ID being queried. + * @param array $field The field array. + * @return array + */ + public function get_rest_links($value, $post_id, array $field) + { + } + /** + * Apply basic formatting to prepare the value for default REST output. + * + * @since 5.11 + * + * @param mixed $value The raw (unformatted) field value. + * @param integer|string $post_id The post ID being queried. + * @param array $field The field array. + * @return mixed + */ + public function format_value_for_rest($value, $post_id, array $field) + { + } + } + class acf_field_radio extends \acf_field + { + /** + * This function will setup the field type data + * + * @type function + * @date 5/03/2014 + * @since 5.0.0 + * + * @param void + * @return void + */ + function initialize() + { + } + /** + * Create the HTML interface for your field + * + * @param array $field the $field being rendered + * + * @type action + * @since 3.6 + * @date 23/01/13 + * + * @param array $field the $field being edited + * @return void + * @phpstan-return void + */ + function render_field($field) + { + } + /** + * Create extra options for your field. This is rendered when editing a field. + * The value of $field['name'] can be used (like bellow) to save extra data to the $field + * + * @type action + * @since 3.6 + * @date 23/01/13 + * + * @param $field - an array holding all the field's data + */ + function render_field_settings($field) + { + } + /** + * Renders the field settings used in the "Validation" tab. + * + * @since 6.0 + * + * @param array $field The field settings array. + * @return void + */ + function render_field_validation_settings($field) + { + } + /** + * Renders the field settings used in the "Presentation" tab. + * + * @since 6.0 + * + * @param array $field The field settings array. + * @return void + */ + function render_field_presentation_settings($field) + { + } + /** + * This filter is appied to the $field before it is saved to the database + * + * @type filter + * @since 3.6 + * @date 23/01/13 + * + * @param $field - the field array holding all the field options + * @param $post_id - the field group ID (post_type = acf) + * + * @return $field - the modified field + */ + function update_field($field) + { + } + /** + * This filter is appied to the $value before it is updated in the db + * + * @type filter + * @since 3.6 + * @date 23/01/13 + * @todo Fix bug where $field was found via json and has no ID + * + * @param $value - the value which will be saved in the database + * @param $post_id - the post_id of which the value will be saved + * @param $field - the field array holding all the field options + * + * @return $value - the modified value + */ + function update_value($value, $post_id, $field) + { + } + /** + * This filter is appied to the $value after it is loaded from the db + * + * @type filter + * @since 5.2.9 + * @date 23/01/13 + * + * @param $value - the value found in the database + * @param $post_id - the post_id from which the value was loaded from + * @param $field - the field array holding all the field options + * + * @return $value - the value to be saved in te database + */ + function load_value($value, $post_id, $field) + { + } + /** + * This function will translate field settings + * + * @type function + * @date 8/03/2016 + * @since 5.3.2 + * + * @param array $field + * @return $field + */ + function translate_field($field) + { + } + /** + * This filter is appied to the $value after it is loaded from the db and before it is returned to the template + * + * @type filter + * @since 3.6 + * @date 23/01/13 + * + * @param mixed $value the value which was loaded from the database + * @param mixed $post_id the post_id from which the value was loaded + * @param array $field the field array holding all the field options + * + * @return mixed $value the modified value + */ + function format_value($value, $post_id, $field) + { + } + /** + * Return the schema array for the REST API. + * + * @param array $field + * @return array + */ + function get_rest_schema(array $field) + { + } + } + class acf_field_range extends \acf_field_number + { + /** + * This function will setup the field type data + * + * @type function + * @date 5/03/2014 + * @since 5.0.0 + * + * @param void + * @return void + */ + function initialize() + { + } + /** + * Create the HTML interface for your field + * + * @param $field - an array holding all the field's data + * + * @type action + * @since 3.6 + * @date 23/01/13 + */ + function render_field($field) + { + } + /** + * Create extra options for your field. This is rendered when editing a field. + * The value of $field['name'] can be used (like bellow) to save extra data to the $field + * + * @type action + * @since 3.6 + * @date 23/01/13 + * + * @param $field - an array holding all the field's data + */ + function render_field_settings($field) + { + } + /** + * Renders the field settings used in the "Validation" tab. + * + * @since 6.0 + * + * @param array $field The field settings array. + * @return void + */ + function render_field_validation_settings($field) + { + } + /** + * Renders the field settings used in the "Presentation" tab. + * + * @since 6.0 + * + * @param array $field The field settings array. + * @return void + */ + function render_field_presentation_settings($field) + { + } + /** + * Return the schema array for the REST API. + * + * @param array $field + * @return array + */ + public function get_rest_schema(array $field) + { + } + /** + * Apply basic formatting to prepare the value for default REST output. + * + * @param mixed $value + * @param string|integer $post_id + * @param array $field + * @return mixed + */ + public function format_value_for_rest($value, $post_id, array $field) + { + } + } + class acf_field_relationship extends \acf_field + { + /** + * This function will setup the field type data + * + * @type function + * @date 5/03/2014 + * @since 5.0.0 + */ + public function initialize() + { + } + /** + * Filters choices in relation conditions. + * + * @since 6.3 + * + * @param array $choices The selected choice. + * @param array $conditional_field The conditional field settings object. + * @param string $rule_value The rule value. + * @return array + */ + public function render_field_relation_conditional_choices($choices, $conditional_field, $rule_value) + { + } + /** + * description + * + * @type function + * @date 16/12/2015 + * @since 5.3.2 + * + * @param int $post_id + * @return int $post_id + */ + function input_admin_enqueue_scripts() + { + } + /** + * Returns AJAX results for the Relationship field. + * + * @since 5.0.0 + * + * @return void + */ + public function ajax_query() + { + } + /** + * This function will return an array of data formatted for use in a select2 AJAX response + * + * @since 5.0.9 + * + * @param array $options An array of options for the query. + * @return array + */ + public function get_ajax_query($options = array()) + { + } + /** + * This function will return an array containing id, text and maybe description data + * + * @type function + * @date 7/07/2016 + * @since 5.4.0 + * + * @param mixed $id + * @param string $text + * @return array + */ + function get_post_result($id, $text) + { + } + /** + * This function returns the HTML for a result + * + * @type function + * @date 1/11/2013 + * @since 5.0.0 + * + * @param object $post + * @param array $field + * @param int $post_id the post_id to which this value is saved to + * @return string + */ + function get_post_title($post, $field, $post_id = 0, $is_search = 0) + { + } + /** + * Create the HTML interface for your field + * + * @param $field - an array holding all the field's data + * + * @type action + * @since 3.6 + * @date 23/01/13 + */ + function render_field($field) + { + } + /** + * Create extra options for your field. This is rendered when editing a field. + * The value of $field['name'] can be used (like bellow) to save extra data to the $field + * + * @type action + * @since 3.6 + * @date 23/01/13 + * + * @param $field - an array holding all the field's data + */ + function render_field_settings($field) + { + } + /** + * Renders the field settings used in the "Validation" tab. + * + * @since 6.0 + * + * @param array $field The field settings array. + * @return void + */ + function render_field_validation_settings($field) + { + } + /** + * Renders the field settings used in the "Presentation" tab. + * + * @since 6.0 + * + * @param array $field The field settings array. + * @return void + */ + function render_field_presentation_settings($field) + { + } + /** + * Renders the field settings used in the "Advanced" tab. + * + * @since 6.2 + * + * @param array $field The field settings array. + * @return void + */ + public function render_field_advanced_settings($field) + { + } + /** + * This filter is applied to the $value after it is loaded from the db and before it is returned to the template + * + * @type filter + * @since 3.6 + * @date 23/01/13 + * + * @param mixed $value the value which was loaded from the database + * @param mixed $post_id the post_id from which the value was loaded + * @param array $field the field array holding all the field options + * + * @return mixed $value the modified value + */ + function format_value($value, $post_id, $field) + { + } + /** + * description + * + * @type function + * @date 11/02/2014 + * @since 5.0.0 + * + * @param int $post_id + * @return int $post_id + */ + function validate_value($valid, $value, $field, $input) + { + } + /** + * Filters the field value before it is saved into the database. + * + * @since 3.6 + * + * @param mixed $value The value which will be saved in the database. + * @param integer $post_id The post_id of which the value will be saved. + * @param array $field The field array holding all the field options. + * + * @return mixed $value The modified value. + */ + public function update_value($value, $post_id, $field) + { + } + /** + * Validates relationship fields updated via the REST API. + * + * @param boolean $valid The current validity booleean + * @param integer $value The value of the field + * @param array $field The field array + * @return boolean|WP_Error + */ + public function validate_rest_value($valid, $value, $field) + { + } + /** + * Return the schema array for the REST API. + * + * @param array $field + * @return array + */ + public function get_rest_schema(array $field) + { + } + /** + * @see \acf_field::get_rest_links() + * @param mixed $value The raw (unformatted) field value. + * @param integer|string $post_id + * @param array $field + * @return array + */ + public function get_rest_links($value, $post_id, array $field) + { + } + /** + * Apply basic formatting to prepare the value for default REST output. + * + * @param mixed $value + * @param string|integer $post_id + * @param array $field + * @return mixed + */ + public function format_value_for_rest($value, $post_id, array $field) + { + } + } + class acf_field_select extends \acf_field + { + /** + * Sets up the field type data. + * + * @since 5.0.0 + * + * @return void + */ + public function initialize() + { + } + /** + * Enqueues admin scripts for the Select field. + * + * @since 5.3.2 + * + * @return void + * @phpstan-return void + */ + public function input_admin_enqueue_scripts() + { + } + /** + * AJAX handler for getting Select field choices. + * + * @since 5.0.0 + * + * @return void + */ + public function ajax_query() + { + } + /** + * This function will return an array of data formatted for use in a select2 AJAX response + * + * @since 5.0.9 + * + * @param array $options An array of options. + * @return array A select2 compatible array of options. + */ + public function get_ajax_query($options = array()) + { + } + /** + * Creates the HTML interface for the field. + * + * @since 3.6 + * + * @param array $field An array holding all the field's data. + * @return void + */ + public function render_field($field) + { + } + /** + * Renders the field settings used in the "General" tab. + * + * @since 3.6 + * + * @param array $field An array holding all the field's data. + * @return void + */ + public function render_field_settings($field) + { + } + /** + * Renders the field settings used in the "Validation" tab. + * + * @since 6.0 + * + * @param array $field The field settings array. + * @return void + */ + public function render_field_validation_settings($field) + { + } + /** + * Renders the field settings used in the "Presentation" tab. + * + * @since 6.0 + * + * @param array $field The field settings array. + * @return void + */ + public function render_field_presentation_settings($field) + { + } + /** + * Filters the $value after it is loaded from the db. + * + * @since 3.6 + * + * @param mixed $value The value found in the database. + * @param integer|string $post_id The post_id from which the value was loaded. + * @param array $field The field array holding all the field options. + * @return mixed + */ + public function load_value($value, $post_id, $field) + { + } + /** + * Filters the $field before it is saved to the database. + * + * @since 3.6 + * + * @param array $field The field array holding all the field options. + * @return array + */ + public function update_field($field) + { + } + /** + * Filters the $value before it is updated in the db. + * + * @since 3.6 + * + * @param mixed $value The value which will be saved in the database. + * @param integer|string $post_id The post_id of which the value will be saved. + * @param array $field The field array holding all the field options. + * + * @return mixed + */ + public function update_value($value, $post_id, $field) + { + } + /** + * Translates the field settings. + * + * @since 5.3.2 + * + * @param array $field The main field array. + * @return array + */ + public function translate_field($field) + { + } + /** + * Filters the $value after it is loaded from the db, and before it is returned to the template. + * + * @since 3.6 + * + * @param mixed $value The value which was loaded from the database. + * @param integer|string $post_id The post_id from which the value was loaded. + * @param array $field The field array holding all the field options. + * + * @return mixed + */ + public function format_value($value, $post_id, $field) + { + } + /** + * Formats the value when the select is not a multi-select. + * + * @since 3.6 + * + * @param mixed $value The value to format. + * @param integer|string $post_id The post_id from which the value was loaded. + * @param array $field The field array holding all the field options. + * @return mixed + */ + public function format_value_single($value, $post_id, $field) + { + } + /** + * Validates select fields updated via the REST API. + * + * @param boolean $valid The current validity booleean + * @param integer $value The value of the field + * @param array $field The field array + * @return boolean|WP_Error + */ + public function validate_rest_value($valid, $value, $field) + { + } + /** + * Formats the choices available for the REST API. + * + * @since 6.2 + * + * @param array $choices The choices for the field. + * @return array + */ + public function format_rest_choices($choices) + { + } + /** + * Return the schema array for the REST API. + * + * @param array $field The main field array. + * @return array + */ + public function get_rest_schema(array $field) + { + } + } + class acf_field_separator extends \acf_field + { + /** + * This function will setup the field type data + * + * @type function + * @date 5/03/2014 + * @since 5.0.0 + * + * @param void + * @return void + */ + function initialize() + { + } + /** + * Create the HTML interface for your field + * + * @param $field - an array holding all the field's data + * + * @type action + * @since 3.6 + * @date 23/01/13 + */ + function render_field($field) + { + } + /** + * This filter is appied to the $field after it is loaded from the database + * + * @type filter + * @since 3.6 + * @date 23/01/13 + * + * @param $field - the field array holding all the field options + * + * @return $field - the field array holding all the field options + */ + function load_field($field) + { + } + } + class acf_field_tab extends \acf_field + { + public $show_in_rest = \false; + /** + * This function will setup the field type data + * + * @type function + * @date 5/03/2014 + * @since 5.0.0 + * + * @param void + * @return void + */ + function initialize() + { + } + /** + * Output the HTML required for a tab. + * + * @since 3.6 + * + * @param array $field An array of the field data. + */ + public function render_field($field) + { + } + /** + * Create extra options for your field. This is rendered when editing a field. + * The value of $field['name'] can be used (like bellow) to save extra data to the $field + * + * @param $field - an array holding all the field's data + * + * @type action + * @since 3.6 + * @date 23/01/13 + */ + function render_field_settings($field) + { + } + /** + * This filter is appied to the $field after it is loaded from the database + * + * @type filter + * @since 3.6 + * @date 23/01/13 + * + * @param $field - the field array holding all the field options + * + * @return $field - the field array holding all the field options + */ + function load_field($field) + { + } + } + class acf_field_taxonomy extends \acf_field + { + // vars + var $save_post_terms = array(); + /** + * This function will setup the field type data + * + * @type function + * @date 5/03/2014 + * @since 5.0.0 + */ + public function initialize() + { + } + /** + * Returns AJAX results for the Taxonomy field. + * + * @since 5.0.0 + * + * @return void + */ + public function ajax_query() + { + } + /** + * This function will return an array of data formatted for use in a select2 AJAX response + * + * @type function + * @date 15/10/2014 + * @since 5.0.9 + * + * @param array $options + * @return array + */ + function get_ajax_query($options = array()) + { + } + /** + * Returns the Term's title displayed in the field UI. + * + * @since 5.0.0 + * + * @param WP_Term $term The term object. + * @param array $field The field settings. + * @param mixed $post_id The post_id being edited. + * @param boolean $unescape Should we return an unescaped post title. + * @return string + */ + function get_term_title($term, $field, $post_id = 0, $unescape = \false) + { + } + /** + * This function will return an array of terms for a given field value + * + * @type function + * @date 13/06/2014 + * @since 5.0.0 + * + * @param array $value + * @return $value + */ + function get_terms($value, $taxonomy = 'category') + { + } + /** + * This filter is appied to the $value after it is loaded from the db + * + * @type filter + * @since 3.6 + * @date 23/01/13 + * + * @param $value - the value found in the database + * @param $post_id - the post_id from which the value was loaded from + * @param $field - the field array holding all the field options + * + * @return $value - the value to be saved in te database + */ + function load_value($value, $post_id, $field) + { + } + /** + * Filters the field value before it is saved into the database. + * + * @since 3.6 + * + * @param mixed $value The value which will be saved in the database. + * @param integer $post_id The post_id of which the value will be saved. + * @param array $field The field array holding all the field options. + * @return mixed $value The modified value. + */ + public function update_value($value, $post_id, $field) + { + } + /** + * This function will save any terms in the save_post_terms array + * + * @since 5.0.9 + * + * @param mixed $post_id The ACF post ID to save to. + * @return void + */ + public function save_post($post_id) + { + } + /** + * This filter is appied to the $value after it is loaded from the db and before it is returned to the template + * + * @type filter + * @since 3.6 + * @date 23/01/13 + * + * @param mixed $value the value which was loaded from the database + * @param mixed $post_id the post_id from which the value was loaded + * @param array $field the field array holding all the field options + * + * @return mixed $value the modified value + */ + function format_value($value, $post_id, $field) + { + } + /** + * Renders the Taxonomy field. + * + * @since 3.6 + * + * @param array $field The field settings array. + * @return void + * @phpstan-return void + */ + public function render_field($field) + { + } + /** + * Create the HTML interface for your field + * + * @type action + * @since 3.6 + * @date 23/01/13 + * + * @param $field - an array holding all the field's data + */ + function render_field_select($field, $nonce) + { + } + /** + * Create the HTML interface for your field + * + * @since 3.6 + * + * @param array $field an array holding all the field's data. + */ + public function render_field_checkbox($field) + { + } + /** + * Create extra options for your field. This is rendered when editing a field. + * The value of $field['name'] can be used (like bellow) to save extra data to the $field + * + * @type action + * @since 3.6 + * @date 23/01/13 + * + * @param $field - an array holding all the field's data + */ + function render_field_settings($field) + { + } + /** + * Renders the field settings used in the "Advanced" tab. + * + * @since 6.2 + * + * @param array $field The field settings array. + * @return void + */ + public function render_field_advanced_settings($field) + { + } + /** + * Filters choices in taxonomy conditions. + * + * @since 6.3 + * + * @param array $choices The selected choice. + * @param array $conditional_field The conditional field settings object. + * @param string $rule_value The rule value. + * @return mixed + */ + public function render_field_taxonomy_conditional_choices($choices, $conditional_field, $rule_value) + { + } + /** + * AJAX handler for adding Taxonomy field terms. + * + * @since 5.2.3 + * + * @return void + * @phpstan-return never + */ + public function ajax_add_term() + { + } + /** + * Return the schema array for the REST API. + * + * @param array $field + * @return array + */ + public function get_rest_schema(array $field) + { + } + /** + * @see \acf_field::get_rest_links() + * @param mixed $value The raw (unformatted) field value. + * @param integer|string $post_id + * @param array $field + * @return array + */ + public function get_rest_links($value, $post_id, array $field) + { + } + } + class acf_field_text extends \acf_field + { + /** + * This function will setup the field type data + * + * @type function + * @date 5/03/2014 + * @since 5.0.0 + * + * @param void + * @return void + */ + function initialize() + { + } + /** + * Create the HTML interface for your field + * + * @param $field - an array holding all the field's data + * + * @type action + * @since 3.6 + * @date 23/01/13 + */ + function render_field($field) + { + } + /** + * Create extra options for your field. This is rendered when editing a field. + * The value of $field['name'] can be used (like bellow) to save extra data to the $field + * + * @param $field - an array holding all the field's data + * + * @type action + * @since 3.6 + * @date 23/01/13 + */ + function render_field_settings($field) + { + } + /** + * Renders the field settings used in the "Validation" tab. + * + * @since 6.0 + * + * @param array $field The field settings array. + * @return void + */ + function render_field_validation_settings($field) + { + } + /** + * Renders the field settings used in the "Presentation" tab. + * + * @since 6.0 + * + * @param array $field The field settings array. + * @return void + */ + function render_field_presentation_settings($field) + { + } + /** + * validate_value + * + * Validates a field's value. + * + * @date 29/1/19 + * @since 5.7.11 + * + * @param bool|string Whether the value is vaid or not. + * @param mixed $value The field value. + * @param array $field The field array. + * @param string $input The HTML input name. + * @return bool|string + */ + function validate_value($valid, $value, $field, $input) + { + } + /** + * Return the schema array for the REST API. + * + * @param array $field + * @return array + */ + function get_rest_schema(array $field) + { + } + } + class acf_field_textarea extends \acf_field + { + /** + * This function will setup the field type data + * + * @type function + * @date 5/03/2014 + * @since 5.0.0 + * + * @param void + * @return void + */ + function initialize() + { + } + /** + * Create the HTML interface for your field + * + * @param $field - an array holding all the field's data + * + * @type action + * @since 3.6 + * @date 23/01/13 + */ + function render_field($field) + { + } + /** + * Create extra options for your field. This is rendered when editing a field. + * The value of $field['name'] can be used (like bellow) to save extra data to the $field + * + * @param $field - an array holding all the field's data + * + * @type action + * @since 3.6 + * @date 23/01/13 + */ + function render_field_settings($field) + { + } + /** + * Renders the field settings used in the "Validation" tab. + * + * @since 6.0 + * + * @param array $field The field settings array. + * @return void + */ + function render_field_validation_settings($field) + { + } + /** + * Renders the field settings used in the "Presentation" tab. + * + * @since 6.0 + * + * @param array $field The field settings array. + * @return void + */ + function render_field_presentation_settings($field) + { + } + /** + * This filter is applied to the $value after it is loaded from the db and before it is returned to the template + * + * @type filter + * @since 3.6 + * @date 23/01/13 + * + * @param mixed $value the value which was loaded from the database + * @param mixed $post_id the post_id from which the value was loaded + * @param array $field the field array holding all the field options + * + * @return mixed $value the modified value + */ + function format_value($value, $post_id, $field) + { + } + /** + * validate_value + * + * Validates a field's value. + * + * @date 29/1/19 + * @since 5.7.11 + * + * @param bool|string Whether the value is vaid or not. + * @param mixed $value The field value. + * @param array $field The field array. + * @param string $input The HTML input name. + * @return bool|string + */ + function validate_value($valid, $value, $field, $input) + { + } + /** + * Return the schema array for the REST API. + * + * @param array $field + * @return array + */ + function get_rest_schema(array $field) + { + } + } + class acf_field_time_picker extends \acf_field + { + /** + * This function will setup the field type data + * + * @type function + * @date 5/03/2014 + * @since 5.0.0 + * + * @param void + * @return void + */ + function initialize() + { + } + /** + * Create the HTML interface for your field + * + * @param $field - an array holding all the field's data + * + * @type action + * @since 3.6 + * @date 23/01/13 + */ + function render_field($field) + { + } + /** + * Create extra options for your field. This is rendered when editing a field. + * The value of $field['name'] can be used (like bellow) to save extra data to the $field + * + * @type action + * @since 3.6 + * @date 23/01/13 + * + * @param $field - an array holding all the field's data + */ + function render_field_settings($field) + { + } + /** + * This filter is appied to the $value after it is loaded from the db and before it is returned to the template + * + * @type filter + * @since 3.6 + * @date 23/01/13 + * + * @param mixed $value the value which was loaded from the database + * @param mixed $post_id the post_id from which the value was loaded + * @param array $field the field array holding all the field options + * @return mixed $value the modified value + */ + public function format_value($value, $post_id, $field) + { + } + /** + * This filter is applied to the $field after it is loaded from the database + * and ensures the return and display values are set. + * + * @type filter + * @since 5.11.0 + * + * @param array $field The field array holding all the field options. + * @return array + */ + public function load_field($field) + { + } + /** + * Return the schema array for the REST API. + * + * @param array $field The field array. + * @return array + */ + public function get_rest_schema(array $field) + { + } + } + class acf_field_true_false extends \acf_field + { + /** + * This function will setup the field type data + * + * @type function + * @date 5/03/2014 + * @since 5.0.0 + * + * @param void + * @return void + */ + function initialize() + { + } + /** + * Create the HTML interface for your field + * + * @param $field - an array holding all the field's data + * + * @type action + * @since 3.6 + * @date 23/01/13 + */ + function render_field($field) + { + } + /** + * Create extra options for your field. This is rendered when editing a field. + * The value of $field['name'] can be used (like bellow) to save extra data to the $field + * + * @type action + * @since 3.6 + * @date 23/01/13 + * + * @param $field - an array holding all the field's data + */ + function render_field_settings($field) + { + } + /** + * Renders the field settings used in the "Presentation" tab. + * + * @since 6.0 + * + * @param array $field The field settings array. + * @return void + */ + function render_field_presentation_settings($field) + { + } + /** + * This filter is appied to the $value after it is loaded from the db and before it is returned to the template + * + * @type filter + * @since 3.6 + * @date 23/01/13 + * + * @param mixed $value the value which was loaded from the database + * @param mixed $post_id the post_id from which the value was loaded + * @param array $field the field array holding all the field options + * + * @return mixed $value the modified value + */ + function format_value($value, $post_id, $field) + { + } + /** + * description + * + * @type function + * @date 11/02/2014 + * @since 5.0.0 + * + * @param int $post_id + * @return int $post_id + */ + function validate_value($valid, $value, $field, $input) + { + } + /** + * This function will translate field settings + * + * @type function + * @date 8/03/2016 + * @since 5.3.2 + * + * @param array $field + * @return $field + */ + function translate_field($field) + { + } + /** + * Return the schema array for the REST API. + * + * @param array $field + * @return array + */ + public function get_rest_schema(array $field) + { + } + /** + * Apply basic formatting to prepare the value for default REST output. + * + * @param mixed $value + * @param string|integer $post_id + * @param array $field + * @return mixed + */ + public function format_value_for_rest($value, $post_id, array $field) + { + } + } + /** + * The URL field class. + */ + class acf_field_url extends \acf_field + { + /** + * This function will setup the field type data + * + * @since 5.0.0 + */ + public function initialize() + { + } + /** + * Create the HTML interface for your field + * + * @since 3.6 + * + * @param array $field An array holding all the field's data. + */ + public function render_field($field) + { + } + /** + * Create extra options for your field. This is rendered when editing a field. + * The value of $field['name'] can be used (like bellow) to save extra data to the $field + * + * @since 3.6 + * + * @param array $field An array holding all the field's data. + */ + public function render_field_settings($field) + { + } + /** + * Renders the field settings used in the "Presentation" tab. + * + * @since 6.0 + * + * @param array $field The field settings array. + * @return void + */ + public function render_field_presentation_settings($field) + { + } + /** + * Validate the fields value is correctly formatted as a URL + * + * @since 5.0.0 + * + * @param mixed $valid The current validity of the field value. Boolean true if valid, a validation error message string if not. + * @param string $value The value of the field. + * @param array $field Field object array. + * @param string $input The form input name for this field. + * @return mixed Boolean true if valid, a validation error message string if not. + */ + public function validate_value($valid, $value, $field, $input) + { + } + /** + * This filter is applied to the $value after it is loaded from the db, and before it is returned to the template + * + * @since 6.2.6 + * + * @param mixed $value The value which was loaded from the database. + * @param mixed $post_id The $post_id from which the value was loaded. + * @param array $field The field array holding all the field options. + * @param boolean $escape_html Should the field return a HTML safe formatted value. + * @return mixed $value The modified value + */ + public function format_value($value, $post_id, $field, $escape_html) + { + } + /** + * Return the schema array for the REST API. + * + * @param array $field The field object. + * @return array + */ + public function get_rest_schema(array $field) + { + } + } + class ACF_Field_User extends \ACF_Field + { + /** + * Initializes the field type. + * + * @date 5/03/2014 + * @since 5.0.0 + */ + function initialize() + { + } + /** + * Filters choices in user conditions. + * + * @since 6.3 + * + * @param array $choices The selected choice. + * @param array $conditional_field The conditional field settings object. + * @param string $rule_value The rule value. + * @return array + */ + public function render_field_user_conditional_choices($choices, $conditional_field, $rule_value) + { + } + /** + * Renders the field settings HTML. + * + * @date 23/01/13 + * @since 3.6.0 + * + * @param array $field The ACF field. + * @return void + */ + function render_field_settings($field) + { + } + /** + * Renders the field settings used in the "Validation" tab. + * + * @since 6.0 + * + * @param array $field The field settings array. + * @return void + */ + function render_field_validation_settings($field) + { + } + /** + * Renders the field settings used in the "Advanced" tab. + * + * @since 6.2 + * + * @param array $field The field settings array. + * @return void + */ + public function render_field_advanced_settings($field) + { + } + /** + * Renders the field input HTML. + * + * @since 3.6.0 + * + * @param array $field The ACF field. + * @return void + */ + public function render_field($field) + { + } + /** + * Returns the result text for a given WP_User object. + * + * @date 1/11/2013 + * @since 5.0.0 + * + * @param WP_User $user The WP_User object. + * @param array $field The ACF field related to this query. + * @param int|string $post_id The post_id being edited. + * @return string + */ + function get_result($user, $field, $post_id = 0) + { + } + /** + * Filters the field value after it is loaded from the database. + * + * @date 23/01/13 + * @since 3.6.0 + * + * @param mixed $value The field value. + * @param mixed $post_id The post ID where the value is saved. + * @param array $field The field array containing all settings. + * @return mixed + */ + function load_value($value, $post_id, $field) + { + } + /** + * Filters the field value after it is loaded from the database but before it is returned to the front-end API. + * + * @date 23/01/13 + * @since 3.6.0 + * + * @param mixed $value The field value. + * @param mixed $post_id The post ID where the value is saved. + * @param array $field The field array containing all settings. + * @return mixed + */ + function format_value($value, $post_id, $field) + { + } + /** + * Filters the field value before it is saved into the database. + * + * @since 3.6.0 + * + * @param mixed $value The field value. + * @param mixed $post_id The post ID where the value is saved. + * @param array $field The field array containing all settings. + * @return mixed $value The modified value. + */ + public function update_value($value, $post_id, $field) + { + } + /** + * Callback for the AJAX query request. + * + * @date 24/10/13 + * @since 5.0.0 + * + * @param void + * @return void + */ + function ajax_query() + { + } + /** + * Runs during the AJAX query initialization. + * + * @date 9/3/20 + * @since 5.8.8 + * + * @param array $request The query request. + * @param ACF_Ajax_Query $query The query object. + * @return void + */ + function ajax_query_init($request, $query) + { + } + /** + * Filters the AJAX query args. + * + * @date 9/3/20 + * @since 5.8.8 + * + * @param array $args The query args. + * @param array $request The query request. + * @param ACF_Ajax_Query $query The query object. + * @return array + */ + function ajax_query_args($args, $request, $query) + { + } + /** + * Filters the WP_User_Query search columns. + * + * @date 9/3/20 + * @since 5.8.8 + * + * @param array $columns An array of column names to be searched. + * @param string $search The search term. + * @param WP_User_Query $WP_User_Query The WP_User_Query instance. + * @return array + */ + function ajax_query_search_columns($columns, $search, $WP_User_Query, $query) + { + } + /** + * Filters the AJAX Query result. + * + * @date 9/3/20 + * @since 5.8.8 + * + * @param array $item The choice id and text. + * @param WP_User $user The user object. + * @param ACF_Ajax_Query $query The query object. + * @return array + */ + function ajax_query_result($item, $user, $query) + { + } + /** + * Return an array of data formatted for use in a select2 AJAX response. + * + * @date 15/10/2014 + * @since 5.0.9 + * @deprecated 5.8.9 + * + * @param array $args An array of query args. + * @return array + */ + function get_ajax_query($options = array()) + { + } + /** + * Filters the WP_User_Query search columns. + * + * @date 15/10/2014 + * @since 5.0.9 + * @deprecated 5.8.9 + * + * @param array $columns An array of column names to be searched. + * @param string $search The search term. + * @param WP_User_Query $WP_User_Query The WP_User_Query instance. + * @return array + */ + function user_search_columns($columns, $search, $WP_User_Query) + { + } + /** + * Validates user fields updated via the REST API. + * + * @param boolean $valid The current validity booleean + * @param integer $value The value of the field + * @param array $field The field array + * @return boolean|WP_Error + */ + public function validate_rest_value($valid, $value, $field) + { + } + /** + * Return the schema array for the REST API. + * + * @param array $field + * @return array + */ + public function get_rest_schema(array $field) + { + } + /** + * @see \acf_field::get_rest_links() + * @param mixed $value The raw (unformatted) field value. + * @param integer|string $post_id + * @param array $field + * @return array + */ + public function get_rest_links($value, $post_id, array $field) + { + } + /** + * Apply basic formatting to prepare the value for default REST output. + * + * @param mixed $value + * @param string|integer $post_id + * @param array $field + * @return mixed + */ + public function format_value_for_rest($value, $post_id, array $field) + { + } + } + class acf_field_wysiwyg extends \acf_field + { + /** + * This function will setup the field type data + * + * @type function + * @date 5/03/2014 + * @since 5.0.0 + * + * @param void + * @return void + */ + function initialize() + { + } + /** + * This function will add filters to 'acf_the_content' + * + * @type function + * @date 20/09/2016 + * @since 5.4.0 + * + * @param void + * @return void + */ + function add_filters() + { + } + /** + * This function will return an array of toolbars for the WYSIWYG field + * + * @type function + * @date 18/04/2014 + * @since 5.0.0 + * + * @param void + * @return array + */ + function get_toolbars() + { + } + /** + * Registers toolbars data for the WYSIWYG field. + * + * @type function + * @date 16/12/2015 + * @since 5.3.2 + * + * @param void + * @return void + */ + function acf_enqueue_uploader() + { + } + /** + * Create the HTML interface for your field + * + * @param array $field An array holding all the field's data + * + * @type action + * @since 3.6 + * @date 23/01/13 + */ + function render_field($field) + { + } + /** + * Create extra options for your field. This is rendered when editing a field. + * The value of $field['name'] can be used (like bellow) to save extra data to the $field + * + * @type action + * @since 3.6 + * @date 23/01/13 + * + * @param $field - an array holding all the field's data + */ + function render_field_settings($field) + { + } + /** + * Renders the field settings used in the "Presentation" tab. + * + * @since 6.0 + * + * @param array $field The field settings array. + * @return void + */ + function render_field_presentation_settings($field) + { + } + /** + * This filter is applied to the $value after it is loaded from the db, and before it is returned to the template + * + * @type filter + * @since 3.6 + * + * @param mixed $value The value which was loaded from the database. + * @param mixed $post_id The $post_id from which the value was loaded. + * @param array $field The field array holding all the field options. + * @param boolean $escape_html Should the field return a HTML safe formatted value. + * @return mixed $value The modified value + */ + public function format_value($value, $post_id, $field, $escape_html) + { + } + } + class acf_form_attachment + { + /** + * This function will setup the class functionality + * + * @type function + * @date 5/03/2014 + * @since 5.0.0 + * + * @param void + * @return void + */ + function __construct() + { + } + /** + * This action is run after post query but before any admin script / head actions. + * It is a good place to register all actions. + * + * @type action (admin_enqueue_scripts) + * @date 26/01/13 + * @since 3.6.0 + * + * @param void + * @return void + * @phpstan-return void + */ + function admin_enqueue_scripts() + { + } + /** + * This function will add acf_form_data to the WP 4.0 attachment grid + * + * @type action (admin_footer) + * @date 11/09/2014 + * @since 5.0.0 + * + * @param void + * @return void + */ + function admin_footer() + { + } + /** + * description + * + * @type function + * @date 8/10/13 + * @since 5.0.0 + * + * @param int $post_id + * @return int $post_id + */ + function edit_attachment($form_fields, $post) + { + } + /** + * description + * + * @type function + * @date 8/10/13 + * @since 5.0.0 + * + * @param int $post_id + * @return int $post_id + */ + function save_attachment($post, $attachment) + { + } + } + class acf_form_comment + { + /** + * This function will setup the class functionality + * + * @type function + * @date 5/03/2014 + * @since 5.0.0 + * + * @param void + * @return void + */ + function __construct() + { + } + /** + * This function will check if the current page is for a post/page edit form + * + * @type function + * @date 23/06/12 + * @since 3.1.8 + * + * @param void + * @return boolean + */ + function validate_page() + { + } + /** + * This action is run after post query but before any admin script / head actions. + * It is a good place to register all actions. + * + * @type action (admin_enqueue_scripts) + * @date 26/01/13 + * @since 3.6.0 + * + * @param void + * @return void + * @phpstan-return void + */ + function admin_enqueue_scripts() + { + } + /** + * This function is run on the admin comment.php page and will render the ACF fields within custom metaboxes to look native + * + * @type function + * @date 19/10/13 + * @since 5.0.0 + * + * @param object $comment + * @return void + */ + function edit_comment($comment) + { + } + /** + * description + * + * @type function + * @date 18/04/2016 + * @since 5.3.8 + * + * @param int $post_id + * @return int $post_id + */ + function comment_form_field_comment($html) + { + } + /** + * This function will save the comment data + * + * @type function + * @date 19/10/13 + * @since 5.0.0 + * + * @param comment_id (int) + * @return void + */ + function save_comment($comment_id) + { + } + /** + * description + * + * @type function + * @date 27/03/2015 + * @since 5.1.5 + * + * @param int $post_id + * @return int $post_id + */ + function admin_footer() + { + } + } + class acf_form_customizer + { + /** + * Preview values. + * @var array + */ + public $preview_values = array(); + /** + * Preview fields. + * @var array + */ + public $preview_fields = array(); + /** + * Preview errors. + * @var array + */ + public $preview_errors = array(); + /** + * This function will setup the class functionality + * + * @type function + * @date 5/03/2014 + * @since 5.0.0 + * + * @param void + * @return void + */ + function __construct() + { + } + /** + * This action is run after post query but before any admin script / head actions. + * It is a good place to register all actions. + * + * @type action (admin_enqueue_scripts) + * @date 26/01/13 + * @since 3.6.0 + * + * @param void + * @return void + */ + function customize_controls_init() + { + } + /** + * This function will hook into the widget update filter and save ACF data + * + * @type function + * @date 27/05/2015 + * @since 5.2.3 + * + * @param array $instance widget settings + * @param array $new_instance widget settings + * @param array $old_instance widget settings + * @param object $widget widget info + * @return $instance + */ + function save_widget($instance, $new_instance, $old_instance, $widget) + { + } + /** + * This function will return an array of cutomizer settings that include ACF data + * similar to `$customizer->settings();` + * + * @type function + * @date 22/03/2016 + * @since 5.3.2 + * + * @param object $customizer + * @return mixed $value + */ + function settings($customizer) + { + } + /** + * This function is called when customizer preview is initialized + * + * @type function + * @date 22/03/2016 + * @since 5.3.2 + * + * @param object $customizer + * @return void + * @phpstan-return void + */ + function customize_preview_init($customizer) + { + } + /** + * pre_load_value + * + * Used to inject preview value + * + * @date 2/2/18 + * @since 5.6.5 + * + * @param type $var Description. Default. + * @return type Description. + */ + function pre_load_value($value, $post_id, $field) + { + } + /** + * pre_load_reference + * + * Used to inject preview value + * + * @date 2/2/18 + * @since 5.6.5 + * + * @param type $var Description. Default. + * @return type Description. + */ + function pre_load_reference($field_key, $field_name, $post_id) + { + } + /** + * This function is called when customizer saves a widget. + * Normally, the widget_update_callback filter would be used, but the customizer disables this and runs a custom action + * class-customizer-settings.php will save the widget data via the function set_root_value which uses update_option + * + * @type function + * @date 22/03/2016 + * @since 5.3.2 + * + * @param object $customizer + * @return void + * @phpstan-return void + */ + function customize_save($customizer) + { + } + /** + * This function will remove the [acf] data from widget insance + * + * @type function + * @date 22/03/2016 + * @since 5.3.2 + * + * @param int $post_id + * @return int $post_id + */ + function pre_update_option($value, $option, $old_value) + { + } + /** + * This function will add some custom HTML to the footer of the edit page + * + * @type function + * @date 11/06/2014 + * @since 5.0.0 + * + * @param void + * @return void + */ + function admin_footer() + { + } + } + class acf_form_front + { + /** + * An array of default fields. + * @var array + */ + public $fields = array(); + /** + * Constructs the class. + * + * @since 5.0.0 + */ + public function __construct() + { + } + /** + * Returns fields used by frontend forms. + * + * @since 6.4 + * + * @return array + */ + public function get_default_fields(): array + { + } + /** + * description + * + * @type function + * @date 28/2/17 + * @since 5.5.8 + * + * @param int $post_id + * @return int $post_id + */ + function validate_form($args) + { + } + /** + * description + * + * @type function + * @date 28/2/17 + * @since 5.5.8 + * + * @param int $post_id + * @return int $post_id + */ + function add_form($args = array()) + { + } + /** + * description + * + * @type function + * @date 28/2/17 + * @since 5.5.8 + * + * @param int $post_id + * @return int $post_id + */ + function get_form($id = '') + { + } + function get_forms() + { + } + /** + * This function will validate fields from the above array + * + * @type function + * @date 7/09/2016 + * @since 5.4.0 + * + * @param int $post_id + * @return int $post_id + */ + function validate_save_post() + { + } + /** + * description + * + * @type function + * @date 7/09/2016 + * @since 5.4.0 + * + * @param int $post_id + * @return int $post_id + */ + function pre_save_post($post_id, $form) + { + } + /** + * This function will enqueue a form + * + * @type function + * @date 7/09/2016 + * @since 5.4.0 + * + * @param int $post_id + * @return int $post_id + */ + function enqueue_form() + { + } + /** + * This function will maybe submit form data + * + * @type function + * @date 3/3/17 + * @since 5.5.10 + * + * @param void + * @return void + */ + function check_submit_form() + { + } + /** + * This function will submit form data + * + * @type function + * @date 3/3/17 + * @since 5.5.10 + * + * @param void + * @return void + */ + function submit_form($form) + { + } + /** + * description + * + * @type function + * @date 7/09/2016 + * @since 5.4.0 + * + * @param int $post_id + * @return int $post_id + */ + function render_form($args = array()) + { + } + } + class ACF_Form_Gutenberg + { + /** + * __construct + * + * Setup for class functionality. + * + * @date 13/12/18 + * @since 5.8.0 + * + * @param void + * @return void + */ + function __construct() + { + } + /** + * enqueue_block_editor_assets + * + * Allows a safe way to customize Guten-only functionality. + * + * @date 14/12/18 + * @since 5.8.0 + * + * @param void + * @return void + */ + function enqueue_block_editor_assets() + { + } + /** + * add_meta_boxes + * + * Modify screen for Gutenberg. + * + * @date 13/12/18 + * @since 5.8.0 + * + * @param void + * @return void + */ + function add_meta_boxes() + { + } + /** + * block_editor_meta_box_hidden_fields + * + * Modify screen for Gutenberg. + * + * @date 13/12/18 + * @since 5.8.0 + * + * @param void + * @return void + */ + function block_editor_meta_box_hidden_fields() + { + } + /** + * filter_block_editor_meta_boxes + * + * description + * + * @date 5/4/19 + * @since 5.7.14 + * + * @param type $var Description. Default. + * @return type Description. + */ + function filter_block_editor_meta_boxes($wp_meta_boxes) + { + } + /** + * modify_user_option_meta_box_order + * + * Filters the `meta-box-order_{$post_type}` value by prepending "acf_after_title" data to "normal". + * Fixes a bug where metaboxes with position "acf_after_title" do not appear in the block editor. + * + * @date 11/7/19 + * @since 5.8.2 + * + * @param array $stored_meta_box_order User's existing meta box order. + * @return array Modified array with meta boxes moved around. + */ + function modify_user_option_meta_box_order($locations) + { + } + /** + * acf_validate_save_post + * + * Ignore errors during the Gutenberg "save metaboxes" AJAX request. + * Allows data to save and prevent UX issues. + * + * @date 16/12/18 + * @since 5.8.0 + * + * @param void + * @return void + */ + function acf_validate_save_post() + { + } + } + class acf_form_nav_menu + { + /** + * This function will setup the class functionality + * + * @type function + * @date 5/03/2014 + * @since 5.0.0 + * + * @param void + * @return void + */ + function __construct() + { + } + /** + * This action is run after post query but before any admin script / head actions. + * It is a good place to register all actions. + * + * @type action (admin_enqueue_scripts) + * @date 26/01/13 + * @since 3.6.0 + * + * @param void + * @return void + * @phpstan-return void + */ + function admin_enqueue_scripts() + { + } + /** + * wp_nav_menu_item_custom_fields + * + * description + * + * @date 30/7/18 + * @since 5.6.9 + * + * @param type $var Description. Default. + * @return type Description. + */ + function wp_nav_menu_item_custom_fields($item_id, $item, $depth, $args, $id = '') + { + } + /** + * description + * + * @type function + * @date 26/5/17 + * @since 5.6.0 + * + * @param int $post_id + * @return int $post_id + */ + function update_nav_menu($menu_id) + { + } + /** + * description + * + * @type function + * @date 26/5/17 + * @since 5.6.0 + * + * @param int $post_id + * @return int $post_id + * @phpstan-return void + */ + function update_nav_menu_items($menu_id) + { + } + /** + * wp_get_nav_menu_items + * + * WordPress does not provide an easy way to find the current menu being edited. + * This function listens to when a menu's items are loaded and stores the menu. + * Needed on nav-menus.php page for new menu with no items + * + * @date 23/2/18 + * @since 5.6.9 + * + * @param type $var Description. Default. + * @return type Description. + */ + function wp_get_nav_menu_items($items, $menu, $args) + { + } + /** + * Called when WP renders a menu edit form. + * Used to set global data and customize the Walker class. + * + * @date 26/5/17 + * @since 5.6.0 + * + * @param string $class The walker class to use. Default 'Walker_Nav_Menu_Edit'. + * @param integer $menu_id ID of the menu being rendered. + * @return string + */ + function wp_edit_nav_menu_walker($class, $menu_id = 0) + { + } + /** + * This function will loop over $_POST data and validate + * + * @type action 'acf/validate_save_post' 5 + * @date 7/09/2016 + * @since 5.4.0 + * + * @param void + * @return void + * @phpstan-return void + */ + function acf_validate_save_post() + { + } + /** + * This function will add some custom HTML to the footer of the edit page + * + * @type function + * @date 11/06/2014 + * @since 5.0.0 + * + * @param void + * @return void + */ + function admin_footer() + { + } + } + class ACF_Form_Post + { + /** @var string The first field groups style CSS. */ + var $style = ''; + /** + * __construct + * + * Sets up the class functionality. + * + * @date 5/03/2014 + * @since 5.0.0 + * + * @param void + * @return void + */ + function __construct() + { + } + /** + * initialize + * + * Sets up Form functionality. + * + * @date 19/9/18 + * @since 5.7.6 + * + * @param void + * @return void + * @phpstan-return void + */ + function initialize() + { + } + /** + * add_meta_boxes + * + * Adds ACF metaboxes for the given $post_type and $post. + * + * @date 19/9/18 + * @since 5.7.6 + * + * @param string $post_type The post type. + * @param WP_Post $post The post being edited. + * @return void + */ + function add_meta_boxes($post_type, $post) + { + } + /** + * Called after the title and before the content editor to render the after title metaboxes. + * Also renders the CSS required to hide the "hide-on-screen" elements on the page based on the field group settings. + * + * @since 5.7.6 + */ + public function edit_form_after_title() + { + } + /** + * render_meta_box + * + * Renders the ACF metabox HTML. + * + * @date 19/9/18 + * @since 5.7.6 + * + * @param WP_Post $post The post being edited. + * @param array metabox The add_meta_box() args. + * @return void + */ + function render_meta_box($post, $metabox) + { + } + /** + * wp_insert_post_empty_content + * + * Allows WP to insert a new post without title or post_content if ACF data exists. + * + * @date 16/07/2014 + * @since 5.0.1 + * + * @param boolean $maybe_empty Whether the post should be considered "empty". + * @param array $postarr Array of post data. + * @return boolean + */ + function wp_insert_post_empty_content($maybe_empty, $postarr) + { + } + /** + * Checks if the $post is allowed to be saved. + * Used to avoid triggering "acf/save_post" on dynamically created posts during save. + * + * @type function + * @date 26/06/2016 + * @since 5.3.8 + * + * @param WP_Post $post The post to check. + * @return boolean + */ + function allow_save_post($post) + { + } + /** + * Triggers during the 'save_post' action to save the $_POST data. + * + * @since 1.0.0 + * + * @param integer $post_id The post ID. + * @param WP_Post $post The post object. + * @return integer + */ + public function save_post($post_id, $post) + { + } + } + class acf_form_taxonomy + { + var $view = 'add'; + /** + * This function will setup the class functionality + * + * @type function + * @date 5/03/2014 + * @since 5.0.0 + * + * @param void + * @return void + */ + function __construct() + { + } + /** + * This function will check if the current page is for a post/page edit form + * + * @type function + * @date 23/06/12 + * @since 3.1.8 + * + * @param void + * @return boolean + */ + function validate_page() + { + } + /** + * This action is run after post query but before any admin script / head actions. + * It is a good place to register all actions. + * + * @type action (admin_enqueue_scripts) + * @date 26/01/13 + * @since 3.6.0 + * + * @param void + * @return void + * @phpstan-return void + */ + function admin_enqueue_scripts() + { + } + /** + * description + * + * @type function + * @date 8/10/13 + * @since 5.0.0 + * + * @param int $post_id + * @return int $post_id + */ + function add_term($taxonomy) + { + } + /** + * description + * + * @type function + * @date 8/10/13 + * @since 5.0.0 + * + * @param int $post_id + * @return int $post_id + */ + function edit_term($term, $taxonomy) + { + } + /** + * description + * + * @type function + * @date 27/03/2015 + * @since 5.1.5 + * + * @param int $post_id + * @return int $post_id + */ + function admin_footer() + { + } + /** + * description + * + * @type function + * @date 8/10/13 + * @since 5.0.0 + * + * @param int $post_id + * @return int $post_id + */ + function save_term($term_id, $tt_id, $taxonomy) + { + } + /** + * description + * + * @type function + * @date 15/10/13 + * @since 5.0.0 + * + * @param int $post_id + * @return int $post_id + */ + function delete_term($term, $tt_id, $taxonomy, $deleted_term) + { + } + } + class ACF_Form_User + { + /** @var string The current view (new, edit, register) */ + var $view = ''; + /** + * This function will setup the class functionality + * + * @type function + * @date 5/03/2014 + * @since 5.0.0 + * + * @param void + * @return void + */ + function __construct() + { + } + /** + * admin_enqueue_scripts + * + * Checks current screen and enqueues scripts + * + * @date 17/4/18 + * @since 5.6.9 + * + * @param void + * @return void + * @phpstan-return void + */ + function admin_enqueue_scripts() + { + } + /** + * login_form_register + * + * Customizes and enqueues scripts + * + * @date 17/4/18 + * @since 5.6.9 + * + * @param void + * @return void + */ + function login_form_register() + { + } + /** + * Called during the user register form + * + * @type function + * @date 8/10/13 + * @since 5.0.0 + * + * @param void + * @return void + */ + function render_register() + { + } + /** + * Called during the user edit form + * + * @type function + * @date 8/10/13 + * @since 5.0.0 + * + * @param void + * @return void + */ + function render_edit($user) + { + } + /** + * description + * + * @type function + * @date 8/10/13 + * @since 5.0.0 + * + * @param int $post_id + * @return int $post_id + * @phpstan-return void + */ + function render_new() + { + } + /** + * This function will render ACF fields for a given $post_id parameter + * + * @type function + * @since 5.0.0 + * + * @param int $user_id this can be set to 0 for a new user + * @param string $user_form used for location rule matching. edit | add | register + * @param string $el + * @return void + * @phpstan-return void + */ + function render($args = array()) + { + } + /** + * description + * + * @type function + * @date 27/03/2015 + * @since 5.1.5 + * + * @param int $post_id + * @return int $post_id + */ + function admin_footer() + { + } + /** + * description + * + * @type function + * @date 8/10/13 + * @since 5.0.0 + * + * @param int $post_id + * @return int $post_id + */ + function save_user($user_id) + { + } + /** + * filter_registration_errors + * + * Validates $_POST data and appends any errors to prevent new user registration. + * + * @date 12/7/19 + * @since 5.8.1 + * + * @param WP_Error $errors A WP_Error object containing any errors encountered during registration. + * @param string $sanitized_user_login User's username after it has been sanitized. + * @param string $user_email User's email. + * @return WP_Error + */ + function filter_registration_errors($errors, $sanitized_user_login, $user_email) + { + } + /** + * filter_pre_load_value + * + * Checks if a $_POST value exists for this field to allow persistent values. + * + * @date 12/7/19 + * @since 5.8.2 + * + * @param null $null A null placeholder. + * @param int|string $post_id The post id. + * @param array $field The field array. + * @return mixed + */ + function filter_pre_load_value($null, $post_id, $field) + { + } + } + class acf_form_widget + { + /** + * Preview values. + * @var array + */ + public $preview_values = array(); + /** + * Preview reference. + * @var array + */ + public $preview_reference = array(); + /** + * Preview errors. + * @var array + */ + public $preview_errors = array(); + /** + * This function will setup the class functionality + * + * @type function + * @date 5/03/2014 + * @since 5.0.0 + * + * @param void + * @return void + */ + function __construct() + { + } + /** + * This action is run after post query but before any admin script / head actions. + * It is a good place to register all actions. + * + * @type action (admin_enqueue_scripts) + * @date 26/01/13 + * @since 3.6.0 + * + * @param void + * @return void + * @phpstan-return void + */ + function admin_enqueue_scripts() + { + } + /** + * This function will loop over $_POST data and validate + * + * @type action 'acf/validate_save_post' 5 + * @since 5.4.0 + * @phpstan-return void + */ + public function acf_validate_save_post() + { + } + /** + * This function will render the fields for a widget form + * + * @type function + * @date 11/06/2014 + * @since 5.0.0 + * + * @param object $widget + * @param null $return + * @param object $instance + * @return int $post_id + */ + function edit_widget($widget, $return, $instance) + { + } + /** + * This function will hook into the widget update filter and save ACF data + * + * @type function + * @date 27/05/2015 + * @since 5.2.3 + * + * @param array $instance widget settings + * @param array $new_instance widget settings + * @param array $old_instance widget settings + * @param object $widget widget info + * @return $instance + */ + function save_widget($instance, $new_instance, $old_instance, $widget) + { + } + /** + * This function will add some custom HTML to the footer of the edit page + * + * @type function + * @date 11/06/2014 + * @since 5.0.0 + * + * @param void + * @return void + */ + function admin_footer() + { + } + } + class ACF_Legacy_Locations + { + /** + * Magic __isset method for backwards compatibility. + * + * @date 10/4/20 + * @since 5.9.0 + * + * @param string $key Key name. + * @return boolean + */ + public function __isset($key) + { + } + /** + * Magic __get method for backwards compatibility. + * + * @date 10/4/20 + * @since 5.9.0 + * + * @param string $key Key name. + * @return mixed + */ + public function __get($key) + { + } + /** + * Magic __call method for backwards compatibility. + * + * @date 10/4/20 + * @since 5.9.0 + * + * @param string $name The method name. + * @param array $arguments The array of arguments. + * @return mixed + */ + public function __call($name, $arguments) + { + } + } + class ACF_Local_JSON + { + /** + * Constructor. + * + * @date 14/4/20 + * @since 5.9.0 + * + * @param void + * @return void + */ + public function __construct() + { + } + /** + * Returns true if this component is enabled. + * + * @date 14/4/20 + * @since 5.9.0 + * + * @param void + * @return boolean + */ + public function is_enabled() + { + } + /** + * Gets the path(s) to load JSON from. + * + * @since 6.2 + * + * @return array + */ + public function get_load_paths() + { + } + /** + * Gets the path(s) to save JSON to. + * + * @since 6.2 + * + * @param string $key The key to get paths for (optional). + * @param array $post The main ACF post array (optional). + * @return array + */ + public function get_save_paths($key = '', $post = array()) + { + } + /** + * Writes field group data to JSON file. + * + * @date 14/4/20 + * @since 5.9.0 + * + * @param array $field_group The field group. + * @return void + */ + public function update_field_group($field_group) + { + } + /** + * Writes ACF posts to the JSON file. + * + * @since 6.1 + * + * @param array $post The main ACF post array. + * @return boolean + */ + public function update_internal_post_type($post) + { + } + /** + * Deletes a field group JSON file. + * + * @date 14/4/20 + * @since 5.9.0 + * + * @param array $field_group The field group. + * @return boolean + */ + public function delete_field_group($field_group) + { + } + /** + * Deletes an ACF JSON file. + * + * @since 6.1 + * + * @param array $post The main ACF post array. + * @return boolean + */ + public function delete_internal_post_type($post) + { + } + /** + * Includes all local JSON fields. + * + * @date 14/4/20 + * @since 5.9.0 + * + * @param void + * @return void + */ + public function include_fields() + { + } + /** + * Includes all local JSON post types. + * + * @since 6.1 + */ + public function include_post_types() + { + } + /** + * Includes all local JSON taxonomies. + * + * @since 6.1 + */ + public function include_taxonomies() + { + } + /** + * Scans for JSON field groups. + * + * @date 14/4/20 + * @since 5.9.0 + * + * @return array + */ + function scan_field_groups() + { + } + /** + * Scans for JSON files. + * + * @since 6.1 + * + * @param string $post_type The ACF post type to scan for. + * @return array + */ + function scan_files($post_type = 'acf-field-group') + { + } + /** + * Returns an array of found JSON files. + * + * @date 14/4/20 + * @since 5.9.0 + * + * @param string $post_type The ACF post type to get files for. + * @return array + */ + public function get_files($post_type = 'acf-field-group') + { + } + /** + * Gets the filename for an ACF JSON file. + * + * @since 6.3 + * + * @param string $key The ACF post key. + * @param array $post The main ACF post array. + * @return string|boolean + */ + public function get_filename($key, $post) + { + } + /** + * Saves an ACF JSON file. + * + * @date 17/4/20 + * @since 5.9.0 + * + * @param string $key The ACF post key. + * @param array $post The main ACF post array. + * @return boolean + */ + public function save_file($key, $post) + { + } + /** + * Deletes an ACF JSON file. + * + * @date 17/4/20 + * @since 5.9.0 + * + * @param string $key The ACF post key. + * @param array $post The main ACF post array. + * @return boolean + */ + public function delete_file($key, $post = array()) + { + } + /** + * Includes all local JSON files. + * + * @date 10/03/2014 + * @since 5.0.0 + * @deprecated 5.9.0 + */ + public function include_json_folders() + { + } + /** + * Includes local JSON files within a specific folder. + * + * @date 01/05/2017 + * @since 5.5.13 + * @deprecated 5.9.0 + * + * @param string $path The path to a specific JSON folder. + * @return void + */ + public function include_json_folder($path = '') + { + } + } + class ACF_Local_Meta + { + /** @var array Storage for meta data. */ + var $meta = array(); + /** @var mixed Storage for the current post_id. */ + var $post_id = 0; + /** + * __construct + * + * Sets up the class functionality. + * + * @date 8/10/18 + * @since 5.8.0 + * + * @param void + * @return void + */ + function __construct() + { + } + /** + * add + * + * Adds postmeta to storage. + * Accepts data in either raw or request format. + * + * @date 8/10/18 + * @since 5.8.0 + * + * @param array $meta An array of metdata to store. + * @param mixed $post_id The post_id for this data. + * @param boolean $is_main Makes this postmeta visible to get_field() without a $post_id value. + * @return array + */ + function add($meta = array(), $post_id = 0, $is_main = \false) + { + } + /** + * is_request + * + * Returns true if the supplied $meta is from a REQUEST (serialized