sprintf( '%s', admin_url( 'admin.php?page=' . Settings::SETTING_BASE_SLUG ), esc_html__( 'Settings', 'pojo-accessibility' ) ), ]; if ( Connect::is_connected() ) { $custom_links['upgrade'] = sprintf( '%s', 'https://go.elementor.com/ally-plugins-upgrade/', esc_html__( 'Upgrade', 'pojo-accessibility' ) ); } else { $custom_links['connect'] = sprintf( '%s', admin_url( 'admin.php?page=' . Settings::SETTING_BASE_SLUG ), esc_html__( 'Connect', 'pojo-accessibility' ) ); } return array_merge( $custom_links, $links ); } public static function is_active() : bool { return true; } public function enqueue_scripts() : void { wp_enqueue_style( 'ea11y-global-style', EA11Y_ASSETS_URL . 'css/admin.css', [], EA11Y_VERSION ); } /** * Module constructor. */ public function __construct() { $this->register_components(); add_action( 'admin_enqueue_scripts', [ $this, 'enqueue_scripts' ] ); add_filter( 'plugin_action_links', [ $this, 'add_plugin_links' ], 10, 2 ); } }