Plugin Directory

Changeset 3351812


Ignore:
Timestamp:
08/28/2025 08:56:27 AM (7 months ago)
Author:
Beee
Message:

Define properties

Location:
acf-city-selector/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • acf-city-selector/trunk/ACF_City_Selector.php

    r3179115 r3351812  
    44    Plugin URI:     https://acf-city-selector.com
    55    Description:    An extension for ACF which allows you to select a city based on country and province/state.
    6     Version:        1.16.0
    7     Tested up to:   6.6.1
     6    Version:        1.17.0
     7    Tested up to:   6.8.2
    88    Requires PHP:   7.0
    99    Author:         Beee
     
    3333            private array $settings = array();
    3434            private array $l10n = array();
    35            
     35
    3636            public function __construct() {
    37                
     37
    3838                $this->settings = [
    3939                    'db_version' => '1.0',
    4040                    'url'        => plugin_dir_url( __FILE__ ),
    41                     'version'    => '1.16.0',
     41                    'version'    => '1.17.0',
    4242                ];
    4343
     
    5050                    define( 'ACFCS_PLUGIN_PATH', $plugin_path );
    5151                }
    52                
     52
    5353                register_activation_hook( __FILE__,     [ $this, 'acfcs_plugin_activation' ] );
    5454                register_deactivation_hook( __FILE__,   [ $this, 'acfcs_plugin_deactivation' ] );
    55                
     55
    5656                add_action( 'acf/register_fields',      [ $this, 'acfcs_include_field_types' ] ); // v4
    5757                add_action( 'acf/include_field_types',  [ $this, 'acfcs_include_field_types' ] ); // v5
    58                
     58
    5959                add_action( 'admin_enqueue_scripts',    [ $this, 'acfcs_add_scripts_admin' ] );
    6060                add_action( 'admin_menu',               [ $this, 'acfcs_add_admin_pages' ] );
     
    6767                add_action( 'plugins_loaded',           [ $this, 'acfcs_check_for_acf' ], 6 );
    6868                add_action( 'plugins_loaded',           [ $this, 'acfcs_check_acf_version' ] );
    69                
     69
    7070                add_action( 'acf/input/admin_l10n',     [ $this, 'acfcs_error_messages' ] );
    71                
     71
    7272                add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), [ $this, 'acfcs_settings_link' ] );
    73                
     73
    7474                // functions & hooks
    7575                include 'inc/acfcs-actions.php';
     
    161161                }
    162162            }
    163            
    164            
     163
     164
    165165            /**
    166166             * Check if cities need to be re-imported
     
    337337                $acfcs_key      = array_search( 'acf-city-selector/ACF_City_Selector.php', $active_plugins );
    338338                $acf_key        = array_search( 'advanced-custom-fields-pro/acf.php', $active_plugins );
    339                
     339
    340340                if ( false !== $acf_key && false !== $acfcs_key ) {
    341341                    if ( $acfcs_key < $acf_key ) {
  • acf-city-selector/trunk/admin/acf-city-selector-v5.php

    r3179115 r3351812  
    1111         */
    1212        class acf_field_city_selector extends acf_field {
     13            public $name;
     14            public $label;
     15            public $category;
     16            public $defaults;
     17            public $l10n;
     18            public $settings;
     19           
    1320            /*
    1421             * Function index
  • acf-city-selector/trunk/readme.txt

    r3179115 r3351812  
    44Requires at least: 3.6.0
    55Requires PHP: 7.0
    6 Tested up to: 6.6.1
    7 Stable tag: 1.16.0
     6Tested up to: 6.8.2
     7Stable tag: 1.17.0
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4141
    4242== Changelog ==
     43
     44= 1.17.0 =
     45* define properties
    4346
    4447= 1.16.0 =
Note: See TracChangeset for help on using the changeset viewer.