Plugin Directory

Changeset 3697132


Ignore:
Timestamp:
09/15/2026 02:25:56 PM (6 weeks ago)
Author:
pierredelmer
Message:

Add direct Configure Bottoll action link

Location:
bottoll/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • bottoll/trunk/bottoll.php

    r3657093 r3697132  
    55Plugin URI: https://www.bottoll.com/documentation/wordpress
    66Description: Detect AI crawlers, apply access policies, and understand automated access to your WordPress content.
    7 Version: 1.1.3
     7Version: 1.1.4
    88Requires at least: 6.4
    99Requires PHP: 7.2
  • bottoll/trunk/includes/class-admin.php

    r3657093 r3697132  
    2222        add_action('admin_enqueue_scripts', [$this, 'enqueueAssets']);
    2323        add_action('admin_init', [$this, 'settings']);
     24        add_filter(
     25            'plugin_action_links_' . plugin_basename(dirname(__DIR__) . '/bottoll.php'),
     26            [$this, 'pluginActionLinks']
     27        );
    2428        add_action(
    2529            'admin_post_bottoll_test_connection',
    … …  
    3034            [$this, 'disconnect']
    3135        );
     36    }
     37
     38    /**
     39     * Ajoute un accès direct aux réglages depuis la liste des extensions.
     40     *
     41     * @param array<int|string, string> $links Liens d'action du plugin.
     42     * @return array<int|string, string>
     43     */
     44    public function pluginActionLinks(array $links): array
     45    {
     46        $settingsLink = sprintf(
     47            '<a href="%1$s">%2$s</a>',
     48            esc_url(admin_url('options-general.php?page=' . self::PAGE_SLUG)),
     49            esc_html__('Configure Bottoll', 'bottoll')
     50        );
     51
     52        array_unshift($links, $settingsLink);
     53
     54        return $links;
    3255    }
    3356
  • bottoll/trunk/languages/bottoll-fr_FR.po

    r3625740 r3697132  
    2828msgid "Bottoll"
    2929msgstr "Bottoll"
     30
     31msgid "Configure Bottoll"
     32msgstr "Configurer Bottoll"
    3033
    3134msgid "You are not allowed to perform this action."
  • bottoll/trunk/readme.txt

    r3657093 r3697132  
    130130== Changelog ==
    131131
     132= 1.1.4 =
     133* Add quick link to settings.
     134
    132135= 1.1.3 =
    133136* Add support for PHP 7.2 and later.
Note: See TracChangeset for help on using the changeset viewer.