Plugin Directory

Changeset 3260148


Ignore:
Timestamp:
03/22/2025 09:07:12 PM (13 months ago)
Author:
sjcope
Message:

Update documentation

Location:
cwsi-invites
Files:
274 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • cwsi-invites/trunk/README.txt

    r3237406 r3260148  
    11=== Invitations and RSVPs ===
    2 Contributors: charcope, sjcope
     2Contributors: charcope, sjcope, freemius
    33Tags: invitations, rsvps
    4 Stable tag: 1.3.2
     4Stable tag: 1.3.3
    55License: GPLv2
    66License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    4242
    4343== Changelog ==
     44= 1.3.3 =
     45* Fix premium to deactivate the free version
    4446
    4547= 1.3.2 =
    46 * Update Contributors
     48* Minor changes to readme
    4749
    4850= 1.3.1 =
     
    6264
    6365== Upgrade Notice ==
     66= 1.3.3 =
     67* Update as soon as possible.
    6468
    6569= 1.3.2 =
    66 * Update Contributors. Update when convenient.
     70* Minor changes to readme. Update when convenient.
    6771
    6872= 1.3.1 =
  • cwsi-invites/trunk/cwsi-invites.php

    r3237406 r3260148  
    1414 *
    1515 * @wordpress-plugin
    16  * Plugin Name:       Invitations and RSVPs
     16 * Plugin Name: Invitations and RSVPs (Premium)
    1717 * Description:       Invite guests and allow them to enter their RSVP responses for your event.
    1818 * Requires at least: 6.3
    1919 * Requires PHP:      8.0
    20  * Version:           1.3.2
     20 * Version:           1.3.3
    2121 * Author:            Charlene's Web Services
    2222 * Author URI:        https://charlenesweb.ca
     
    3030    die;
    3131}
    32 if ( !function_exists( 'ci_fs' ) ) {
    33     // Create a helper function for easy SDK access.
    34     function ci_fs() {
    35         global $ci_fs;
    36         if ( !isset( $ci_fs ) ) {
    37             // Include Freemius SDK.
    38             require_once dirname( __FILE__ ) . '/freemius/start.php';
    39             $ci_fs = fs_dynamic_init( array(
    40                 'id'             => '17787',
    41                 'slug'           => 'cwsi-invites',
    42                 'type'           => 'plugin',
    43                 'public_key'     => 'pk_72a299302116df5b537ea25bddb9f',
    44                 'is_premium'     => false,
    45                 'has_addons'     => false,
    46                 'has_paid_plans' => true,
    47                 'menu'           => array(
    48                     'first-path' => 'plugins.php',
    49                 ),
    50                 'is_live'        => true,
    51             ) );
     32if ( function_exists( 'ci_fs' ) ) {
     33    ci_fs()->set_basename( false, __FILE__ );
     34} else {
     35    /**
     36     * DO NOT REMOVE THIS IF, IT IS ESSENTIAL FOR THE
     37     * `function_exists` CALL ABOVE TO PROPERLY WORK.
     38     */
     39    if ( !function_exists( 'ci_fs' ) ) {
     40        // Create a helper function for easy SDK access.
     41        function ci_fs() {
     42            global $ci_fs;
     43            if ( !isset( $ci_fs ) ) {
     44                // Include Freemius SDK.
     45                require_once dirname( __FILE__ ) . '/freemius/start.php';
     46                $ci_fs = fs_dynamic_init( array(
     47                    'id'             => '17787',
     48                    'slug'           => 'cwsi-invites',
     49                    'type'           => 'plugin',
     50                    'public_key'     => 'pk_72a299302116df5b537ea25bddb9f',
     51                    'is_premium'     => false,
     52                    'has_addons'     => false,
     53                    'has_paid_plans' => true,
     54                    'menu'           => array(
     55                        'first-path' => 'plugins.php',
     56                    ),
     57                    'is_live'        => true,
     58                ) );
     59            }
     60            return $ci_fs;
    5261        }
    53         return $ci_fs;
     62
     63        // Init Freemius.
     64        ci_fs();
     65        // Signal that SDK was initiated.
     66        do_action( 'ci_fs_loaded' );
     67    }
     68    /**
     69     * First release 1.0.0 and then using SemVer - https://semver.org X.Y.Z (Major.Minor.Patch)
     70     */
     71    define( 'CWSI_INVITES_VERSION', '1.3.3' );
     72    define( 'CWSI_INVITES_SRC_DIR', dirname( __FILE__ ) );
     73    /**
     74     * The code that runs during plugin activation.
     75     * This action is documented in includes/class-cwsi-invites-activator.php
     76     */
     77    function cwsi_activate_cws_invites() {
     78        require_once plugin_dir_path( __FILE__ ) . 'includes/class-cwsi-invites-activator.php';
     79        cwsi_invites_Activator::activate();
     80        register_uninstall_hook( __FILE__, 'cwsi_invites_uninstall' );
    5481    }
    5582
    56     // Init Freemius.
    57     ci_fs();
    58     // Signal that SDK was initiated.
    59     do_action( 'ci_fs_loaded' );
     83    /**
     84     * The code that runs during plugin deactivation.
     85     * This action is documented in includes/class-cwsi-invites-deactivator.php
     86     */
     87    function cwsi_deactivate_cws_invites() {
     88        require_once plugin_dir_path( __FILE__ ) . 'includes/class-cwsi-invites-deactivator.php';
     89        cwsi_invites_Deactivator::deactivate();
     90    }
     91
     92    // And here goes the uninstallation function:
     93    function cwsi_invites_uninstall() {
     94        global $wpdb;
     95        global $wpdb;
     96        $wpdb->query( "DROP TABLE IF EXISTS " . $wpdb->prefix . "cwsi_events" );
     97        // phpcs:ignore WordPress.DB.DirectDatabaseQuery
     98        $wpdb->query( "DROP TABLE IF EXISTS " . $wpdb->prefix . "cwsi_events_invitees" );
     99        // phpcs:ignore WordPress.DB.DirectDatabaseQuery
     100        $wpdb->query( "DROP TABLE IF EXISTS " . $wpdb->prefix . "cwsi_invites" );
     101        // phpcs:ignore WordPress.DB.DirectDatabaseQuery
     102        $wpdb->query( "DROP TABLE IF EXISTS " . $wpdb->prefix . "cwsi_invitesettings" );
     103        // phpcs:ignore WordPress.DB.DirectDatabaseQuery
     104    }
     105
     106    register_activation_hook( __FILE__, 'cwsi_activate_cws_invites' );
     107    register_deactivation_hook( __FILE__, 'cwsi_deactivate_cws_invites' );
     108    /**
     109     * The core plugin class that is used to define internationalization,
     110     * admin-specific hooks, and public-facing site hooks.
     111     */
     112    require plugin_dir_path( __FILE__ ) . 'includes/class-cwsi-invites.php';
     113    /**
     114     * Begins execution of the plugin.
     115     *
     116     * Since everything within the plugin is registered via hooks,
     117     * then kicking off the plugin from this point in the file does
     118     * not affect the page life cycle.
     119     *
     120     * @since    1.0.0
     121     */
     122    function run_cwsi_invites() {
     123        $plugin = new CWSI_Invites();
     124        $plugin->run();
     125    }
     126
     127    run_cwsi_invites();
    60128}
    61 /**
    62  * First release 1.0.0 and then using SemVer - https://semver.org X.Y.Z (Major.Minor.Patch)
    63  */
    64 define( 'CWSI_INVITES_VERSION', '1.3.2' );
    65 define( 'CWSI_INVITES_SRC_DIR', dirname( __FILE__ ) );
    66 /**
    67  * The code that runs during plugin activation.
    68  * This action is documented in includes/class-cwsi-invites-activator.php
    69  */
    70 function cwsi_activate_cws_invites() {
    71     require_once plugin_dir_path( __FILE__ ) . 'includes/class-cwsi-invites-activator.php';
    72     cwsi_invites_Activator::activate();
    73     register_uninstall_hook( __FILE__, 'cwsi_invites_uninstall' );
    74 }
    75 
    76 /**
    77  * The code that runs during plugin deactivation.
    78  * This action is documented in includes/class-cwsi-invites-deactivator.php
    79  */
    80 function cwsi_deactivate_cws_invites() {
    81     require_once plugin_dir_path( __FILE__ ) . 'includes/class-cwsi-invites-deactivator.php';
    82     cwsi_invites_Deactivator::deactivate();
    83 }
    84 
    85 // And here goes the uninstallation function:
    86 function cwsi_invites_uninstall() {
    87     global $wpdb;
    88     global $wpdb;
    89     $wpdb->query( "DROP TABLE IF EXISTS " . $wpdb->prefix . "cwsi_events" );
    90     // phpcs:ignore WordPress.DB.DirectDatabaseQuery
    91     $wpdb->query( "DROP TABLE IF EXISTS " . $wpdb->prefix . "cwsi_events_invitees" );
    92     // phpcs:ignore WordPress.DB.DirectDatabaseQuery
    93     $wpdb->query( "DROP TABLE IF EXISTS " . $wpdb->prefix . "cwsi_invites" );
    94     // phpcs:ignore WordPress.DB.DirectDatabaseQuery
    95     $wpdb->query( "DROP TABLE IF EXISTS " . $wpdb->prefix . "cwsi_invitesettings" );
    96     // phpcs:ignore WordPress.DB.DirectDatabaseQuery
    97 }
    98 
    99 register_activation_hook( __FILE__, 'cwsi_activate_cws_invites' );
    100 register_deactivation_hook( __FILE__, 'cwsi_deactivate_cws_invites' );
    101 /**
    102  * The core plugin class that is used to define internationalization,
    103  * admin-specific hooks, and public-facing site hooks.
    104  */
    105 require plugin_dir_path( __FILE__ ) . 'includes/class-cwsi-invites.php';
    106 /**
    107  * Begins execution of the plugin.
    108  *
    109  * Since everything within the plugin is registered via hooks,
    110  * then kicking off the plugin from this point in the file does
    111  * not affect the page life cycle.
    112  *
    113  * @since    1.0.0
    114  */
    115 function run_cwsi_invites() {
    116     $plugin = new CWSI_Invites();
    117     $plugin->run();
    118 }
    119 
    120 run_cwsi_invites();
  • cwsi-invites/trunk/includes/class-cwsi-invites.php

    r3237406 r3260148  
    7272            $this->version = PLUGIN_NAME_VERSION;
    7373        } else {
    74             $this->version = '1.3.2';
     74            $this->version = '1.3.3';
    7575        }
    7676        $this->plugin_name = 'cwsi-invites';
Note: See TracChangeset for help on using the changeset viewer.