WordPress.org

Plugin Directory

Changeset 1427950


Ignore:
Timestamp:
06/01/16 00:08:32 (18 months ago)
Author:
beka.rice
Message:

Tagging 2.4.0

Location:
woocommerce-extra-product-sorting-options/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • woocommerce-extra-product-sorting-options/trunk/i18n/languages/woocommerce-extra-product-sorting-options.pot

    r1330727 r1427950  
    33msgid "" 
    44msgstr "" 
    5 "Project-Id-Version: WooCommerce Extra Product Sorting Options 2.3.0\n" 
     5"Project-Id-Version: WooCommerce Extra Product Sorting Options 2.4.0\n" 
    66"Report-Msgid-Bugs-To: " 
    77"https://github.com/skyverge/woocommerce-extra-product-sorting-options/" 
     
    1515"Language-Team: LANGUAGE <LL@li.org>\n" 
    1616 
    17 #: build/woocommerce-extra-product-sorting-options.php:39 
    18 #: woocommerce-extra-product-sorting-options.php:39 
    19 #. translators: %1$s and %2$s are <strong> tags. %3$s and %4$s are <a> tags 
    20 msgid "" 
    21 "%1$sWooCommerce Extra Sorting Options is inactive.%2$s This plugin requires " 
    22 "WooCommerce 2.2 or newer. Please %3$supdate WooCommerce to version 2.2 or " 
    23 "newer%4$s" 
     17#: build/woocommerce-extra-product-sorting-options.php:119 
     18#: woocommerce-extra-product-sorting-options.php:119 
     19#. translators: Placeholders: %s - plugin name 
     20msgid "You cannot clone instances of %s." 
    2421msgstr "" 
    2522 
    26 #: build/woocommerce-extra-product-sorting-options.php:149 
    27 #: woocommerce-extra-product-sorting-options.php:149 
     23#: build/woocommerce-extra-product-sorting-options.php:131 
     24#: woocommerce-extra-product-sorting-options.php:131 
     25#. translators: Placeholders: %s - plugin name 
     26msgid "You cannot unserialize instances of %s." 
     27msgstr "" 
     28 
     29#: build/woocommerce-extra-product-sorting-options.php:145 
     30#: woocommerce-extra-product-sorting-options.php:145 
    2831msgid "Configure" 
    2932msgstr "" 
    3033 
    31 #: build/woocommerce-extra-product-sorting-options.php:150 
    32 #: woocommerce-extra-product-sorting-options.php:150 
     34#: build/woocommerce-extra-product-sorting-options.php:146 
     35#: woocommerce-extra-product-sorting-options.php:146 
     36msgid "FAQ" 
     37msgstr "" 
     38 
     39#: build/woocommerce-extra-product-sorting-options.php:147 
     40#: woocommerce-extra-product-sorting-options.php:147 
    3341msgid "Support" 
    3442msgstr "" 
    3543 
    36 #: build/woocommerce-extra-product-sorting-options.php:174 
    37 #: woocommerce-extra-product-sorting-options.php:174 
     44#: build/woocommerce-extra-product-sorting-options.php:192 
     45#: woocommerce-extra-product-sorting-options.php:192 
     46#. translators: %1$s and %2$s are <strong> tags. %3$s and %4$s are <a> tags 
     47msgid "" 
     48"%1$sWooCommerce Extra Product Sorting Options is inactive.%2$s This plugin " 
     49"requires WooCommerce 2.3 or newer. Please %3$supdate WooCommerce to version " 
     50"2.3 or newer%4$s" 
     51msgstr "" 
     52 
     53#: build/woocommerce-extra-product-sorting-options.php:223 
     54#: woocommerce-extra-product-sorting-options.php:223 
    3855msgid "New Default Sorting Label" 
    3956msgstr "" 
    4057 
    41 #: build/woocommerce-extra-product-sorting-options.php:178 
    42 #: woocommerce-extra-product-sorting-options.php:178 
     58#: build/woocommerce-extra-product-sorting-options.php:227 
     59#: woocommerce-extra-product-sorting-options.php:227 
    4360msgid "" 
    4461"If desired, enter a new name for the default sorting option, e.g., " 
     
    4663msgstr "" 
    4764 
    48 #: build/woocommerce-extra-product-sorting-options.php:181 
    49 #: woocommerce-extra-product-sorting-options.php:181 
     65#: build/woocommerce-extra-product-sorting-options.php:230 
     66#: woocommerce-extra-product-sorting-options.php:230 
    5067msgid "Add Product Sorting:" 
    5168msgstr "" 
    5269 
    53 #: build/woocommerce-extra-product-sorting-options.php:182 
    54 #: woocommerce-extra-product-sorting-options.php:182 
     70#: build/woocommerce-extra-product-sorting-options.php:231 
     71#: woocommerce-extra-product-sorting-options.php:231 
    5572msgid "" 
    5673"Select sorting options to add to your shop. \"Available Stock\" sorts " 
     
    5875msgstr "" 
    5976 
    60 #: build/woocommerce-extra-product-sorting-options.php:183 
    61 #: woocommerce-extra-product-sorting-options.php:183 
     77#: build/woocommerce-extra-product-sorting-options.php:232 
     78#: woocommerce-extra-product-sorting-options.php:232 
    6279msgid "" 
    6380"\"On-sale First\" shows <strong>simple</strong> products on sale first; <a " 
     
    6582msgstr "" 
    6683 
    67 #: build/woocommerce-extra-product-sorting-options.php:188 
    68 #: woocommerce-extra-product-sorting-options.php:188 
     84#: build/woocommerce-extra-product-sorting-options.php:237 
     85#: woocommerce-extra-product-sorting-options.php:237 
    6986msgid "Name: A to Z" 
    7087msgstr "" 
    7188 
    72 #: build/woocommerce-extra-product-sorting-options.php:189 
    73 #: woocommerce-extra-product-sorting-options.php:189 
     89#: build/woocommerce-extra-product-sorting-options.php:238 
     90#: woocommerce-extra-product-sorting-options.php:238 
    7491msgid "Name: Z to A" 
    75 msgstr "" 
    76  
    77 #: build/woocommerce-extra-product-sorting-options.php:190 
    78 #: woocommerce-extra-product-sorting-options.php:190 
    79 msgid "Available Stock" 
    80 msgstr "" 
    81  
    82 #: build/woocommerce-extra-product-sorting-options.php:191 
    83 #: woocommerce-extra-product-sorting-options.php:191 
    84 msgid "Featured First" 
    85 msgstr "" 
    86  
    87 #: build/woocommerce-extra-product-sorting-options.php:192 
    88 #: woocommerce-extra-product-sorting-options.php:192 
    89 msgid "On-sale First" 
    90 msgstr "" 
    91  
    92 #: build/woocommerce-extra-product-sorting-options.php:193 
    93 #: woocommerce-extra-product-sorting-options.php:193 
    94 msgid "Random" 
    95 msgstr "" 
    96  
    97 #: build/woocommerce-extra-product-sorting-options.php:231 
    98 #: woocommerce-extra-product-sorting-options.php:231 
    99 msgid "Sort by name: A to Z" 
    100 msgstr "" 
    101  
    102 #: build/woocommerce-extra-product-sorting-options.php:235 
    103 #: woocommerce-extra-product-sorting-options.php:235 
    104 msgid "Sort by name: Z to A" 
    10592msgstr "" 
    10693 
    10794#: build/woocommerce-extra-product-sorting-options.php:239 
    10895#: woocommerce-extra-product-sorting-options.php:239 
     96msgid "Available Stock" 
     97msgstr "" 
     98 
     99#: build/woocommerce-extra-product-sorting-options.php:240 
     100#: woocommerce-extra-product-sorting-options.php:240 
     101msgid "Featured First" 
     102msgstr "" 
     103 
     104#: build/woocommerce-extra-product-sorting-options.php:241 
     105#: woocommerce-extra-product-sorting-options.php:241 
     106msgid "On-sale First" 
     107msgstr "" 
     108 
     109#: build/woocommerce-extra-product-sorting-options.php:242 
     110#: woocommerce-extra-product-sorting-options.php:242 
     111msgid "Random" 
     112msgstr "" 
     113 
     114#: build/woocommerce-extra-product-sorting-options.php:277 
     115#: woocommerce-extra-product-sorting-options.php:277 
     116msgid "Sort by name: A to Z" 
     117msgstr "" 
     118 
     119#: build/woocommerce-extra-product-sorting-options.php:281 
     120#: woocommerce-extra-product-sorting-options.php:281 
     121msgid "Sort by name: Z to A" 
     122msgstr "" 
     123 
     124#: build/woocommerce-extra-product-sorting-options.php:285 
     125#: woocommerce-extra-product-sorting-options.php:285 
    109126msgid "Sort by availability" 
    110127msgstr "" 
    111128 
    112 #: build/woocommerce-extra-product-sorting-options.php:243 
    113 #: woocommerce-extra-product-sorting-options.php:243 
     129#: build/woocommerce-extra-product-sorting-options.php:289 
     130#: woocommerce-extra-product-sorting-options.php:289 
    114131msgid "Show sale items first" 
    115132msgstr "" 
    116133 
    117 #: build/woocommerce-extra-product-sorting-options.php:247 
    118 #: woocommerce-extra-product-sorting-options.php:247 
     134#: build/woocommerce-extra-product-sorting-options.php:293 
     135#: woocommerce-extra-product-sorting-options.php:293 
    119136msgid "Show featured items first" 
    120137msgstr "" 
    121138 
    122 #: build/woocommerce-extra-product-sorting-options.php:251 
    123 #: woocommerce-extra-product-sorting-options.php:251 
     139#: build/woocommerce-extra-product-sorting-options.php:297 
     140#: woocommerce-extra-product-sorting-options.php:297 
    124141msgid "Sort by: random order" 
    125142msgstr "" 
  • woocommerce-extra-product-sorting-options/trunk/readme.txt

    r1330727 r1427950  
    44Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=paypal@skyverge.com&item_name=Donation+for+WooCommerce+Extra+Product+Sorting 
    55Requires at least: 4.0 
    6 Tested up to: 4.4.1 
    7 Requires WooCommerce at least: 2.2 
    8 Tested WooCommerce up to: 2.5 
    9 Stable Tag: 2.3.0 
     6Tested up to: 4.5.2 
     7Requires WooCommerce at least: 2.3 
     8Tested WooCommerce up to: 2.6 
     9Stable Tag: 2.4.0 
    1010License: GPLv3 
    1111License URI: http://www.gnu.org/licenses/gpl-3.0.html 
     
    1717WooCommerce Extra Product Sorting Options provides options that extend the default WooCommerce orderby options on the shop page. You can optionally set a new name for the default sorting (helpful if you've used this to create a custom sorting order), and can enable up to **6 new sorting options**: alphabetical, reverse alphabetical, on sale, featured, availability, and random product sorting. 
    1818 
    19 > **Requires: WooCommerce 2.2+ and WordPress 4.0+** 
     19> **Requires: WooCommerce 2.3+ and WordPress 4.0+** 
    2020 
    2121= Features = 
     
    2828 - enable on sale sorting (**note**: works only for simple products) 
    2929 - enable sorting by inventory / availability 
    30  - enable randomized product sorting 
     30 - enable randomized product sorting (works well for single-page catalogs) 
    3131 
    3232= Rename Default Sorting = 
     
    4040You can add the option to sort items by sale status - there's a sorting option to show "On Sale" items first in the shop catalog. Please note that only simple products can be sorted by sale status, and variable products will display mixed with non-sale products. 
    4141 
    42 Finally, you can add a "randomized" sorting option just for fun - any time this sorting is selected, the product order will be randomized when the shop page is viewed. 
    43  
    44 **Note:** Sorting by stock, sale status, and featured status have a fallback to the product title. This means that featured status, stock, and sale status will be used to sort products first, and then they'll be sorted by title second. The [FAQ](https://wordpress.org/plugins/woocommerce-extra-product-sorting-options/faq/) has details on using a different fallback, such as menu order. 
     42Finally, you can add a "randomized" sorting option just for fun - any time this sorting is selected, the product order will be randomized when the shop page is viewed. This works best when all products are shown on one page, as paged product catalogs will be "re-randomized" with each page change. 
    4543 
    4644= Looking to remove sorting options? = 
     
    5553== Installation == 
    5654 
    57 1. Be sure you're running WooCommerce 2.2+ and WordPress 4.0+ in your shop. 
     551. Be sure you're running WooCommerce 2.3+ and WordPress 4.0+ in your shop. 
    58562. Upload the entire `woocommerce-extra-product-sorting-options` folder to the `/wp-content/plugins/` directory, or upload the .zip file with the plugin under **Plugins &gt; Add New &gt; Upload** 
    59573. Activate the plugin through the **Plugins** menu in WordPress 
     
    10098== Changelog == 
    10199 
     100= 2016.05.31 - version 2.4.0 = 
     101 * Misc: added support for WooCommerce 2.6 
     102 * Misc: removed support for WooCommerce 2.2 
     103 
    102104= 2016.01.18 - version 2.3.0 = 
    103105 * Misc: updated textdomain to `woocommerce-extra-product-sorting-options` - **please update translations**! 
  • woocommerce-extra-product-sorting-options/trunk/woocommerce-extra-product-sorting-options.php

    r1330727 r1427950  
    66 * Author: SkyVerge 
    77 * Author URI: http://www.skyverge.com/ 
    8  * Version: 2.3.0 
     8 * Version: 2.4.0 
    99 * Text Domain: woocommerce-extra-product-sorting-options 
    1010 * 
     
    2222 */ 
    2323 
    24 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly 
     24defined( 'ABSPATH' ) or exit; 
    2525 
    2626 
    2727// Check if WooCommerce is active 
    28 if ( ! in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) 
     28if ( ! WC_Extra_Sorting_Options::is_woocommerce_active() ) { 
    2929    return; 
    30  
     30} 
    3131 
    3232// WC version check 
    33 if ( version_compare( get_option( 'woocommerce_db_version' ), '2.2.0', '<' ) ) { 
    34  
    35     function wc_extra_sorting_options_outdated_version_notice() { 
     33if ( version_compare( get_option( 'woocommerce_db_version' ), '2.3.0', '<' ) ) { 
     34    add_action( 'admin_notices', WC_Extra_Sorting_Options::render_outdated_wc_version_notice() ); 
     35    return; 
     36} 
     37 
     38 
     39// Make sure we're loaded after WC and fire it up! 
     40function init_wc_extra_sorting_options() { 
     41    wc_extra_sorting_options(); 
     42} 
     43add_action( 'plugins_loaded', 'init_wc_extra_sorting_options' ); 
     44 
     45 
     46/** 
     47 * Plugin Description 
     48 * 
     49 * Rename default sorting option - helpful if custom sorting is used. 
     50 * Adds sorting by name, on sale, featured, availability, and random to shop pages. 
     51 * 
     52 */ 
     53 
     54 
     55class WC_Extra_Sorting_Options { 
     56 
     57 
     58    const VERSION = '2.4.0'; 
     59 
     60 
     61    /** @var WC_Extra_Sorting_Options single instance of this plugin */ 
     62    protected static $instance; 
     63 
     64 
     65    public function __construct() { 
     66 
     67        // modify product sorting settings 
     68        add_filter( 'woocommerce_catalog_orderby', array( $this, 'modify_sorting_settings' ) ); 
     69 
     70        // add new sorting options to orderby dropdown 
     71        add_filter( 'woocommerce_default_catalog_orderby_options', array( $this, 'modify_sorting_settings' ) ); 
     72 
     73        // add new product sorting arguments 
     74        add_filter( 'woocommerce_get_catalog_ordering_args', array( $this, 'add_new_shop_ordering_args' ) ); 
     75 
     76        // load translations 
     77        add_action( 'init', array( $this, 'load_translation' ) ); 
     78 
     79        if ( is_admin() && ! is_ajax() ) { 
     80 
     81            // add settings 
     82            add_filter( 'woocommerce_product_settings', array( $this, 'add_settings' ) ); 
     83 
     84            // add plugin links 
     85            add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'add_plugin_links' ) ); 
     86 
     87            // run every time 
     88            $this->install(); 
     89        } 
     90    } 
     91 
     92 
     93    /** Helper methods ******************************************************/ 
     94 
     95 
     96    /** 
     97     * Main Extra Sorting Instance, ensures only one instance is/can be loaded 
     98     * 
     99     * @since 2.2.2 
     100     * @see wc_extra_sorting_options() 
     101     * @return WC_Extra_Sorting_Options 
     102     */ 
     103    public static function instance() { 
     104        if ( is_null( self::$instance ) ) { 
     105            self::$instance = new self(); 
     106        } 
     107        return self::$instance; 
     108    } 
     109 
     110 
     111    /** 
     112     * Cloning instances is forbidden due to singleton pattern 
     113     * 
     114     * @since 2.4.0 
     115     */ 
     116    public function __clone() { 
     117 
     118        /* translators: Placeholders: %s - plugin name */ 
     119        _doing_it_wrong( __FUNCTION__, sprintf( esc_html__( 'You cannot clone instances of %s.', 'woocommerce-extra-product-sorting-options' ), 'WooCommerce Extra Product Sorting Options' ), '2.4.0' ); 
     120    } 
     121 
     122 
     123    /** 
     124     * Unserializing instances is forbidden due to singleton pattern 
     125     * 
     126     * @since 2.4.0 
     127     */ 
     128    public function __wakeup() { 
     129 
     130        /* translators: Placeholders: %s - plugin name */ 
     131        _doing_it_wrong( __FUNCTION__, sprintf( esc_html__( 'You cannot unserialize instances of %s.', 'woocommerce-extra-product-sorting-options' ), 'WooCommerce Extra Product Sorting Options' ), '2.4.0' ); 
     132    } 
     133 
     134 
     135    /** 
     136     * Adds plugin page links 
     137     * 
     138     * @since 2.2.2 
     139     * @param array $links all plugin links 
     140     * @return array $links all plugin links + our custom links (i.e., "Settings") 
     141     */ 
     142    public function add_plugin_links( $links ) { 
     143 
     144        $plugin_links = array( 
     145            '<a href="' . admin_url( 'admin.php?page=wc-settings&tab=products&section=display' ) . '">' . __( 'Configure', 'woocommerce-extra-product-sorting-options' ) . '</a>', 
     146            '<a href="https://wordpress.org/plugins/woocommerce-extra-product-sorting-options/faq/">'. __( 'FAQ', 'woocommerce-extra-product-sorting-options' ) . '</a>', 
     147            '<a href="https://wordpress.org/support/plugin/woocommerce-extra-product-sorting-options" target="_blank">' . __( 'Support', 'woocommerce-extra-product-sorting-options' ) . '</a>', 
     148        ); 
     149 
     150        return array_merge( $plugin_links, $links ); 
     151    } 
     152 
     153 
     154    /** 
     155     * Load Translations 
     156     * 
     157     * @since 2.1.1 
     158     */ 
     159    public function load_translation() { 
     160        // localization 
     161        load_plugin_textdomain( 'woocommerce-extra-product-sorting-options', false, dirname( plugin_basename( __FILE__ ) ) . '/i18n/languages' ); 
     162    } 
     163 
     164 
     165    /** 
     166     * Checks if WooCommerce is active 
     167     * 
     168     * @since 2.4.0 
     169     * @return bool true if WooCommerce is active, false otherwise 
     170     */ 
     171    public static function is_woocommerce_active() { 
     172 
     173        $active_plugins = (array) get_option( 'active_plugins', array() ); 
     174 
     175        if ( is_multisite() ) { 
     176            $active_plugins = array_merge( $active_plugins, get_site_option( 'active_sitewide_plugins', array() ) ); 
     177        } 
     178 
     179        return in_array( 'woocommerce/woocommerce.php', $active_plugins ) || array_key_exists( 'woocommerce/woocommerce.php', $active_plugins ); 
     180    } 
     181 
     182 
     183    /** 
     184     * Renders a notice when WooCommerce version is outdated 
     185     * 
     186     * @since 2.4.0 
     187     */ 
     188    public static function render_outdated_wc_version_notice() { 
    36189 
    37190        $message = sprintf( 
    38191        /* translators: %1$s and %2$s are <strong> tags. %3$s and %4$s are <a> tags */ 
    39             esc_html__( '%1$sWooCommerce Extra Sorting Options is inactive.%2$s This plugin requires WooCommerce 2.2 or newer. Please %3$supdate WooCommerce to version 2.2 or newer%4$s', 'woocommerce-product-sku-generator' ), 
     192            esc_html__( '%1$sWooCommerce Extra Product Sorting Options is inactive.%2$s This plugin requires WooCommerce 2.3 or newer. Please %3$supdate WooCommerce to version 2.3 or newer%4$s', 'woocommerce-extra-product-sorting-options' ), 
    40193            '<strong>', 
    41194            '</strong>', 
     
    44197        ); 
    45198 
    46         echo sprintf( '<div class="error"><p>%s</p></div>', $message ); 
    47     } 
    48  
    49     add_action( 'admin_notices', 'wc_extra_sorting_options_outdated_version_notice' ); 
    50  
    51     return; 
    52 } 
    53  
    54  
    55 // Make sure we're loaded after WC 
    56 function init_wc_extra_sorting_options() { 
    57     // Fire it up! 
    58     wc_extra_sorting_options(); 
    59 } 
    60 add_action( 'plugins_loaded', 'init_wc_extra_sorting_options' ); 
    61  
    62  
    63 /** 
    64  * Plugin Description 
    65  * 
    66  * Rename default sorting option - helpful if custom sorting is used. 
    67  * Adds sorting by name, on sale, featured, availability, and random to shop pages. 
    68  * 
    69  */ 
    70  
    71  
    72 class WC_Extra_Sorting_Options { 
    73  
    74  
    75     const VERSION = '2.3.0'; 
    76  
    77  
    78     /** @var WC_Extra_Sorting_Options single instance of this plugin */ 
    79     protected static $instance; 
    80  
    81  
    82     public function __construct() { 
    83  
    84         // modify product sorting settings 
    85         add_filter( 'woocommerce_catalog_orderby', array( $this, 'modify_sorting_settings' ) ); 
    86  
    87         // add new sorting options to orderby dropdown 
    88         add_filter( 'woocommerce_default_catalog_orderby_options', array( $this, 'modify_sorting_settings' ) ); 
    89  
    90         // add new product sorting arguments 
    91         add_filter( 'woocommerce_get_catalog_ordering_args', array( $this, 'add_new_shop_ordering_args' ) ); 
    92  
    93         // load translations 
    94         add_action( 'init', array( $this, 'load_translation' ) ); 
    95  
    96         if ( is_admin() && ! is_ajax() ) { 
    97  
    98             // add settings 
    99             add_filter( 'woocommerce_product_settings', array( $this, 'add_settings' ) ); 
    100  
    101             // add plugin links 
    102             add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'add_plugin_links' ) ); 
    103  
    104             // run every time 
    105             $this->install(); 
    106         } 
    107     } 
    108  
    109  
    110     /** 
    111      * Load Translations 
    112      * 
    113      * @since 2.1.1 
    114      */ 
    115     public function load_translation() { 
    116         // localization 
    117         load_plugin_textdomain( 'woocommerce-extra-product-sorting-options', false, dirname( plugin_basename( __FILE__ ) ) . '/i18n/languages' ); 
    118     } 
    119  
    120  
    121     /** Helper methods ******************************************************/ 
    122  
    123  
    124     /** 
    125      * Main Extra Sorting Instance, ensures only one instance is/can be loaded 
    126      * 
    127      * @since 2.2.2 
    128      * @see wc_extra_sorting_options() 
    129      * @return WC_Extra_Sorting_Options 
    130      */ 
    131     public static function instance() { 
    132         if ( is_null( self::$instance ) ) { 
    133             self::$instance = new self(); 
    134         } 
    135         return self::$instance; 
    136     } 
    137  
    138  
    139     /** 
    140      * Adds plugin page links 
    141      * 
    142      * @since 2.2.2 
    143      * @param array $links all plugin links 
    144      * @return array $links all plugin links + our custom links (i.e., "Settings") 
    145      */ 
    146     public function add_plugin_links( $links ) { 
    147  
    148         $plugin_links = array( 
    149             '<a href="' . admin_url( 'admin.php?page=wc-settings&tab=products&section=display' ) . '">' . __( 'Configure', 'woocommerce-extra-product-sorting-options' ) . '</a>', 
    150             '<a href="https://wordpress.org/support/plugin/woocommerce-extra-product-sorting-options" target="_blank">' . __( 'Support', 'woocommerce-extra-product-sorting-options' ) . '</a>', 
    151         ); 
    152  
    153         return array_merge( $plugin_links, $links ); 
    154     } 
     199        printf( '<div class="error"><p>%s</p></div>', $message ); 
     200    } 
     201 
     202 
     203    /** Plugin methods ******************************************************/ 
    155204 
    156205 
     
    206255 
    207256 
    208     /** Plugin methods ******************************************************/ 
    209  
    210  
    211257    /** 
    212258     * Change "Default Sorting" to custom name and add new sorting options; added to admin + frontend dropdown 
Note: See TracChangeset for help on using the changeset viewer.