chore: remove rate icons in plugin meta row

This commit is contained in:
Michael Thomas 2024-03-27 16:29:59 -04:00
parent 003c942f4d
commit 9a54bc250e
1 changed files with 0 additions and 20 deletions

View File

@ -603,7 +603,6 @@ if( !class_exists('SW_CLOUDFLARE_PAGECACHE') ) {
function actions() { function actions() {
add_filter( 'themeisle_sdk_products', array( $this, 'load_sdk' ) ); add_filter( 'themeisle_sdk_products', array( $this, 'load_sdk' ) );
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array($this, 'add_plugin_action_links') ); add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array($this, 'add_plugin_action_links') );
add_filter( 'plugin_row_meta' , array($this, 'add_plugin_meta_links'), 10, 2 );
// Multilanguage // Multilanguage
add_action( 'plugins_loaded', array($this, 'load_textdomain') ); add_action( 'plugins_loaded', array($this, 'load_textdomain') );
@ -1092,25 +1091,6 @@ if( !class_exists('SW_CLOUDFLARE_PAGECACHE') ) {
} }
function add_plugin_meta_links($meta_fields, $file) {
if ( plugin_basename(__FILE__) == $file ) {
$meta_fields[] = '<a href="' . esc_url(SWCFPC_PLUGIN_REVIEWS_URL.'?rate=5#new-post') .'" target="_blank" title="' . esc_html__('Rate', 'wp-cloudflare-page-cache') . '">
<i class="ampforwp-rate-stars">'
. '<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="#ffb900" stroke="#ffb900" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-star"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/></svg>'
. '<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="#ffb900" stroke="#ffb900" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-star"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/></svg>'
. '<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="#ffb900" stroke="#ffb900" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-star"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/></svg>'
. '<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="#ffb900" stroke="#ffb900" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-star"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/></svg>'
. '<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="#ffb900" stroke="#ffb900" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-star"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/></svg>'
. '</i></a>';
}
return $meta_fields;
}
function get_cloudflare_api_zone_id() { function get_cloudflare_api_zone_id() {
if( defined('SWCFPC_CF_API_ZONE_ID') ) if( defined('SWCFPC_CF_API_ZONE_ID') )