Plugin Directory

Changeset 3140716


Ignore:
Timestamp:
08/24/2024 10:13:06 AM (19 months ago)
Author:
addonspress
Message:

1.4.3

Location:
advanced-import
Files:
39 added
4 edited

Legend:

Unmodified
Added
Removed
  • advanced-import/trunk/admin/class-advanced-import-admin.php

    r3136465 r3140716  
    184184        // Always return the instance.
    185185        return $instance;
     186    }
     187
     188    /**
     189     * Add plugin menu items.
     190     *
     191     * @access public
     192     *
     193     * @since 1.0.0
     194     * @param string[] $actions     An array of plugin action links. By default this can include
     195     *                              'activate', 'deactivate', and 'delete'. With Multisite active
     196     *                              this can also include 'network_active' and 'network_only' items.
     197     * @param string   $plugin_file Path to the plugin file relative to the plugins directory.
     198     * @param array    $plugin_data An array of plugin data. See get_plugin_data()
     199     *                              and the {@see 'plugin_row_meta'} filter for the list
     200     *                              of possible values.
     201     * @param string   $context     The plugin context. By default this can include 'all',
     202     *                              'active', 'inactive', 'recently_activated', 'upgrade',
     203     *                              'mustuse', 'dropins', and 'search'.
     204     * @return array settings schema for this plugin.
     205     */
     206    public function add_plugin_links( $actions, $plugin_file, $plugin_data, $context ) {
     207        $actions[] = '<a href="' . esc_url( menu_page_url( 'advanced-import', false ) ) . '">' . esc_html__( 'Import', 'advanced-import' ) . '</a>';
     208        return $actions;
    186209    }
    187210
  • advanced-import/trunk/advanced-import.php

    r3136465 r3140716  
    1515 * Plugin URI:        https://addonspress.com/item/advanced-import
    1616 * Description:       Easily import demo data starter site packages or Migrate your site data
    17  * Version:           1.4.2
     17 * Version:           1.4.3
    1818 * Author:            AddonsPress
    1919 * Author URI:        https://addonspress.com/
     
    2525
    2626/*Define Constants for this plugin*/
    27 define( 'ADVANCED_IMPORT_VERSION', '1.4.2' );
     27define( 'ADVANCED_IMPORT_VERSION', '1.4.3' );
    2828define( 'ADVANCED_IMPORT_PLUGIN_NAME', 'advanced-import' );
    2929define( 'ADVANCED_IMPORT_PATH', plugin_dir_path( __FILE__ ) );
  • advanced-import/trunk/includes/class-advanced-import.php

    r3066245 r3140716  
    233233
    234234        $this->loader = new Advanced_Import_Loader();
    235 
    236235    }
    237236
     
    250249
    251250        $this->loader->add_action( 'plugins_loaded', $this->plugin_i18n, 'load_plugin_textdomain' );
    252 
    253251    }
    254252
     
    272270        /*add menu*/
    273271        $this->loader->add_action( 'admin_menu', $this->admin, 'import_menu' );
     272        $this->loader->add_filter( 'plugin_action_links_advanced-import/advanced-import.php', $this->admin, 'add_plugin_links', 10, 4 );
    274273        $this->loader->add_action( 'current_screen', $this->admin, 'help_tabs' );
    275274
     
    288287        $this->loader->add_action( 'admin_notices', advanced_import_reset_wordpress(), 'reset_wizard_notice', -1 );
    289288        $this->loader->add_action( 'wp_ajax_advanced_import_before_reset', advanced_import_reset_wordpress(), 'before_reset' );
    290 
    291289    }
    292290
  • advanced-import/trunk/readme.txt

    r3136466 r3140716  
    33Contributors: addonspress, codersantosh, acmeit
    44Donate link: https://addonspress.com/
    5 Tags: import, advanced import, demo import, theme import, widget import, customizer import
     5Tags: advanced import, demo import, theme import, widget import, customizer import
    66Requires at least: 5.0
    77Tested up to: 6.6
    88Requires PHP: 5.6.20
    9 Stable tag: 1.4.2
     9Stable tag: 1.4.3
    1010License: GPLv2 or later
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    114114               'slug'      => 'gutentor',
    115115            ),
     116             array(
     117                'name'      => __( 'your plugin name', 'text-domain' ),
     118                'slug'      => 'plugin-slug',
     119                'source'      => 'https://downloads.wordpress.org/plugin/advanced-import.1.4.1.zip', //full url with zip, your theme url, or any site link with zip will work
     120            ),
    116121         )
    117122      ),
     
    225230== Changelog ==
    226231
     232= 1.4.3 - 2024-08-24 =
     233* Added:    Plugin link to Import.
     234
    227235= 1.4.2 - 2024-08-16 =
    228236* Added: Developers can now enable plugin installation from a URL by including source in the demo list array. This is ideal for plugins hosted outside of WordPress.org. Important: If a recommended plugin is already available on WordPress.org, there's no need to use the "source" option.
     
    236244            ),
    237245         )
    238 
    239246`
    240247
Note: See TracChangeset for help on using the changeset viewer.