Plugin Directory

Changeset 1956164


Ignore:
Timestamp:
10/13/2018 06:40:52 AM (7 years ago)
Author:
motpr355
Message:

1.0.5 version

Location:
woo-new-product-info
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • woo-new-product-info/tags/1.0.6/readme.txt

    r1916409 r1956164  
    55Tested up to: 4.9
    66Requires PHP : 5.4
    7 Stable tag: 1.0.5
     7Stable tag: 1.0.6
    88License: GPLv2 or later
    99
     
    6464== Changelog ==
    6565
     66= 1.0.6 =
     67* Redirect to plugin's settings after installation
     68
    6669= 1.0.2 =
    6770* First release
  • woo-new-product-info/tags/1.0.6/woo-new-product-info.php

    r1916409 r1956164  
    33Plugin Name: WooCommerce new product info
    44Description: Differentiate WooCommerce new products by displaying a customizable "New" tag.
    5 Version: 1.0.5
     5Version: 1.0.6
    66Author: Motpr355
    77Text Domain: motpr355_woo_new_product_info
     
    2828
    2929        register_activation_hook( __FILE__, array( 'Motpr355_Woo_New_Product_Info', 'install' ) );
     30
     31        add_action( 'activated_plugin', array( $this, 'installed' ) );
    3032
    3133        register_uninstall_hook( __FILE__, array( 'Motpr355_Woo_New_Product_Info', 'uninstall' ) );
     
    141143            $this->settings->{$this->settings_enum->font_weight},
    142144            $this->settings->{$this->settings_enum->text_transform} ) ) {
    143             include plugin_dir_path( __FILE__ ) . 'css/website.php';
     145            include plugin_dir_path( __FILE__ ) . 'css/website.php';
    144146        }
    145147    }
     
    183185        );
    184186        update_option( 'motpr355_woo_new_product_info_settings', $settings );
     187    }
     188
     189    public function installed( $plugin ) {
     190        if( $plugin === plugin_basename( __FILE__ ) ) {
     191        exit( wp_redirect( admin_url( 'edit.php?post_type=product&page=motpr355_woo_new_product_info' ) ) );
     192        }
    185193    }
    186194
  • woo-new-product-info/trunk/readme.txt

    r1916409 r1956164  
    55Tested up to: 4.9
    66Requires PHP : 5.4
    7 Stable tag: 1.0.5
     7Stable tag: 1.0.6
    88License: GPLv2 or later
    99
     
    6464== Changelog ==
    6565
     66= 1.0.6 =
     67* Redirect to plugin's settings after installation
     68
    6669= 1.0.2 =
    6770* First release
  • woo-new-product-info/trunk/woo-new-product-info.php

    r1916409 r1956164  
    33Plugin Name: WooCommerce new product info
    44Description: Differentiate WooCommerce new products by displaying a customizable "New" tag.
    5 Version: 1.0.5
     5Version: 1.0.6
    66Author: Motpr355
    77Text Domain: motpr355_woo_new_product_info
     
    2828
    2929        register_activation_hook( __FILE__, array( 'Motpr355_Woo_New_Product_Info', 'install' ) );
     30
     31        add_action( 'activated_plugin', array( $this, 'installed' ) );
    3032
    3133        register_uninstall_hook( __FILE__, array( 'Motpr355_Woo_New_Product_Info', 'uninstall' ) );
     
    141143            $this->settings->{$this->settings_enum->font_weight},
    142144            $this->settings->{$this->settings_enum->text_transform} ) ) {
    143             include plugin_dir_path( __FILE__ ) . 'css/website.php';
     145            include plugin_dir_path( __FILE__ ) . 'css/website.php';
    144146        }
    145147    }
     
    183185        );
    184186        update_option( 'motpr355_woo_new_product_info_settings', $settings );
     187    }
     188
     189    public function installed( $plugin ) {
     190        if( $plugin === plugin_basename( __FILE__ ) ) {
     191        exit( wp_redirect( admin_url( 'edit.php?post_type=product&page=motpr355_woo_new_product_info' ) ) );
     192        }
    185193    }
    186194
Note: See TracChangeset for help on using the changeset viewer.