Plugin Directory

Changeset 1371472


Ignore:
Timestamp:
03/15/2016 11:14:21 AM (10 years ago)
Author:
Ryan Stutzman
Message:

Added new taq 1.0.3 which simplifies the code

Location:
location-specific-menu-items-by-country
Files:
15 added
2 edited

Legend:

Unmodified
Added
Removed
  • location-specific-menu-items-by-country/trunk/CSMI.php

    r1371466 r1371472  
    55Description:    Control the visibility of individual menu items based on a user's country.
    66Author:         Ryan Stutzman
    7 Version:        1.0.2
     7Version:        1.0.3
    88Author URI:     http://stutzman.asia/
    99*/
     
    183183                    $vals = get_post_meta( $item_id, 'locations', true );
    184184                    require_once( dirname( __FILE__ ) . '/includes/countries.php' );
    185                     foreach($countries as $key => $value) { // Loop through countries
     185                    foreach($countries as $key => $value) {
    186186                    ?>
    187187                        <option value="<?php echo $key;?>"
  • location-specific-menu-items-by-country/trunk/readme.txt

    r1368837 r1371472  
    66Requires at least: 3.1
    77Tested up to: 4.4.2
    8 Stable tag: 1.0.2
     8Stable tag: 1.0.3
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4747= 1.0.2 =
    4848* Changed plugin name from `Location Specific Menu Items by Country` to `Country Specific Menu Items`. I was originally planning to add different types of locations (city, state, continent, etc.) to this plugin and then remove the `by Country`, but have decided instead to just create a completely new plugin for each type of location.
     49
     50= 1.0.3 =
     51* Cleaned up and simplified code by created seperate file for countries array and looping through it in the countries select box.
Note: See TracChangeset for help on using the changeset viewer.