Plugin Directory

Changeset 3239625


Ignore:
Timestamp:
02/12/2025 07:44:44 PM (11 months ago)
Author:
ilachat
Message:

Fixed undefined variable in settings-page.php.
Added settings link to plugin action links.
v1.0.2

Location:
ilachat/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • ilachat/trunk/ilachat.php

    r3239573 r3239625  
    1212 * Plugin URI: https://ila.chat
    1313 * Description: Integrate ILACHAT with WordPress to add AI-powered chatbot and live chat for seamless customer support and engagement.
    14  * Version: 1.0.1
     14 * Version: 1.0.2
    1515 * Requires at least: 6.2
    1616 * Requires PHP: 7.4.0
     
    4343
    4444// Define constants
    45 define('ILACHAT_VERSION', '1.0.1');
     45define('ILACHAT_VERSION', '1.0.2');
    4646define('ILACHAT_ROOT', __FILE__);
    4747define('ILACHAT_PATH', plugin_dir_path(ILACHAT_ROOT));
  • ilachat/trunk/readme.txt

    r3239582 r3239625  
    44Tags: chatbot, live chat, AI chatbot, customer support, AI assistant
    55Tested up to: 6.7
    6 Stable tag: 1.0.1
     6Stable tag: 1.0.2
    77License: GPL v3
    88License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    5050== Changelog ==
    5151
     52= 1.0.2 =
     53* Fixed `Warning: Undefined variable $bot_data` in `settings-page.php`.
     54* Added a settings link to the plugin action links.
     55
    5256= 1.0.1 =
    5357* Fixed namespace conflict causing a parse error in PHP 7.4.
  • ilachat/trunk/src/Admin/Admin.php

    r3232792 r3239625  
    2121        add_action('current_screen', [$this, 'remove_notices']);
    2222        add_action('admin_enqueue_scripts', [$this, 'enqueue_scripts']);
     23        add_filter('plugin_action_links_' . ILACHAT_BASENAME, [$this, 'add_settings_link']);
    2324    }
    2425
     
    107108        ]);
    108109    }
     110
     111    /**
     112     * Adds a settings link to the plugin in the plugins list.
     113     *
     114     * @param array $links The existing links for the plugin.
     115     *
     116     * @return array
     117     */
     118    public function add_settings_link($links)
     119    {
     120        $settings_url = esc_url(admin_url('admin.php?page=ilachat-settings'));
     121        $settings_link = '<a href="' . $settings_url . '">' . __('Settings', 'ilachat') . '</a>';
     122        array_unshift($links, $settings_link);
     123        return $links;
     124    }
    109125}
  • ilachat/trunk/templates/admin/settings-page.php

    r3232792 r3239625  
    55}
    66
     7$bot_data = $args['bot_data'] ?? [];
    78$bot_id = $bot_data['id'] ?? 0;
    89$customize_url = "https://app.ila.chat/user/dashboard/{$bot_id}/settings/deployment/widget";
Note: See TracChangeset for help on using the changeset viewer.