wordpress/wp-content/plugins/kt-tinymce-color-grid/index.php
/**
         * Add a link to the plugin listing
         * @since 1.4
         * @param array $links Array holding HTML
         * @param string $file Current name of plugin file
         * @return array Modified array
         */
Add a link to the plugin listing
@since 1.4
@param array $links Array holding HTML
@param string $file Current name of plugin file
@return array Modified array
Add a link to the plugin listing @since 1 . 4 @param array $links Array holding HTML @param string $file Current name of plugin file @return array Modified array
public function add_action_link($links, $file) {
            if (!current_user_can($this->capability) || plugin_basename($file) != KT_CENTRAL_PALETTE_BASENAME) {
                return $links;
            }
            $href = $this->is_active_for_network ? 'network/settings.php' : 'options-general.php';
            $links[] = '<a href="' . $href . '?page=' . self::KEY . '" title="' . esc_attr__('Opens the settings page for this plugin', 'kt-tinymce-color-grid') . '"> ' . esc_html__('Color Palette', 'kt-tinymce-color-grid') . '</a>';
            return $links;
        }
public function add_action_link ( $ links , $ file ) { if ( ! current_user_can ( $ this -> capability ) || plugin_basename ( $ file ) != KT_CENTRAL_PALETTE_BASENAME ) { return $ links ; } $ href = $ this -> is_active_for_network ? 'network/settings.php' : 'options-general.php' ; $ links [ ] = '<a href="' . $ href . '?page=' . self :: KEY . '" title="' . esc_attr__ ( 'Opens the settings page for this plugin' , 'kt-tinymce-color-grid' ) . '"> ' . esc_html__ ( 'Color Palette' , 'kt-tinymce-color-grid' ) . '</a>' ; return $ links ; }
Add a link to the plugin listing
 @since 1.4
 @param array $links Array holding HTML
 @param string $file Current name of plugin file
 @return array Modified array
Add a link to the plugin listing @since 1 . 4 @param array $links Array holding HTML @param string $file Current name of plugin file @return array Modified array