Plugin Directory

Changeset 2880263


Ignore:
Timestamp:
03/15/2023 07:41:44 AM (3 years ago)
Author:
J4cob
Message:

v2.2.1

Location:
wp-bottom-menu
Files:
53 added
2 edited

Legend:

Unmodified
Added
Removed
  • wp-bottom-menu/trunk/readme.txt

    r2846016 r2880263  
    55Requires at least: 5.0
    66Tested up to: 6.1.1
    7 Stable tag: 2.2
     7Stable tag: 2.2.1
    88Requires PHP: 5.6
    99License: GPLv2 or later
     
    9797== Changelog ==
    9898
     99= 2.2.1 =
     100* Improve - Added WPMB options page link to Settings. You can access it on WP Dashboard > Settings > WP Bottom Menu.
     101
    99102= 2.2 =
    100103* New - JavaScript onClick menu item. See here for usage: Frequently Asked Questions
  • wp-bottom-menu/trunk/wp-bottom-menu.php

    r2846016 r2880263  
    33 * Plugin Name: WP Bottom Menu
    44 * Description: WP Bottom Menu allows you to add a woocommerce supported bottom menu to your site.
    5  * Version: 2.2
     5 * Version: 2.2.1
    66 * Author: J4 & LiquidThemes
    77 * Author URI: https://hub.liquid-themes.com/
     
    2424if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
    2525
    26 define( 'WP_BOTTOM_MENU_VERSION', '2.2' );
     26define( 'WP_BOTTOM_MENU_VERSION', '2.2.1' );
    2727define( 'WP_BOTTOM_MENU_DIR_URL', plugin_dir_url( __FILE__ ) );
    2828define( 'WP_BOTTOM_MENU_DIR_PATH', plugin_dir_path( __FILE__ ) );
     
    109109        add_action( 'wp_footer', array($this, 'wp_bottom_menu' ) );
    110110        add_filter( 'plugin_action_links', array($this, 'wp_bottom_menu_action_links'), 10, 2 );
     111
     112        // Admin menu - Settings > WP Bottom Menu
     113        add_action( 'admin_menu', function() {
     114            add_submenu_page(
     115                'options-general.php', 'WP Bottom Menu', 'WP Bottom Menu', 'manage_options', 'wp-bottom-menu',
     116                function(){
     117                    wp_redirect( admin_url( 'customize.php?autofocus[panel]=wpbottommenu_panel' ) );
     118                }
     119            );
     120        } );       
    111121
    112122        add_action( 'customize_controls_enqueue_scripts', function(){
Note: See TracChangeset for help on using the changeset viewer.