Plugin Directory

Changeset 2706435


Ignore:
Timestamp:
04/07/2022 01:19:51 PM (4 years ago)
Author:
melibo
Message:

add settings link in plugin overview

Location:
melibo-chatbot
Files:
7 added
3 edited

Legend:

Unmodified
Added
Removed
  • melibo-chatbot/trunk/admin/MeliboChatbot.class.php

    r2701252 r2706435  
    44
    55    function __construct() {
     6        add_action( 'admin_init', array($this, 'initSettings'));
    67        add_action( 'admin_menu', array($this, 'adminPage'));
    7         add_action( 'admin_init', array($this, 'initSettings'));
    88        add_action( 'wp_enqueue_scripts', array($this, 'showChatbot'));
     9
     10        add_filter( 'plugin_action_links_melibo-chatbot/melibo-chatbot.php', array($this, 'addSettingsLink'));
    911    }
    1012
     
    8486        <?php }
    8587    }
     88
     89    function addSettingsLink($links) {
     90       
     91        $url = esc_url( add_query_arg(
     92            'page',
     93            'melibo-settings-page',
     94            get_admin_url() . 'admin.php'
     95        ) );
     96       
     97        $settings_link = "<a href='$url'>" . __( 'Settings' ) . '</a>';
     98       
     99        array_push(
     100            $links,
     101            $settings_link
     102        );
     103        return $links;
     104    }
    86105 }
  • melibo-chatbot/trunk/melibo-chatbot.php

    r2701682 r2706435  
    44 * Plugin Name: melibo Chatbot
    55 * Description: add your melibo chatbot to your WordPress for free
    6  * Version: 1.0.1
     6 * Version: 1.1.0
    77 * Author: Melibo
    88 * Author URI: www.melibo.de
  • melibo-chatbot/trunk/readme.txt

    r2702733 r2706435  
    33Tags: chat, live chat, chatbot, support, livechat, bot, melibo, Helpdesk, E-Commerce, messenger, AI, widget,
    44Tested up to: 5.9.2
    5 Stable tag: 1.0.1
     5Stable tag: 1.1.0
    66License: GPLv2
    77License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    133133
    134134- change CDN URL
     135
     136= 1.1.0 =
     137
     138- add settings link in plugin overview
Note: See TracChangeset for help on using the changeset viewer.