diff --git a/admin/rt-transcoder-admin.php b/admin/rt-transcoder-admin.php index 6b1f2730..eaea591a 100755 --- a/admin/rt-transcoder-admin.php +++ b/admin/rt-transcoder-admin.php @@ -87,11 +87,9 @@ public function __construct() { add_action( 'init', array( $this, 'disable_encoding' ) ); } if ( is_multisite() ) { - add_action( 'network_admin_notices', array( $this, 'subscribe_transcoder_admin_notice' ) ); add_action( 'network_admin_notices', array( $this, 'install_godam_admin_notice' ) ); add_action( 'network_admin_enqueue_scripts', array( $this, 'enqueue_thickbox_on_transcoder_settings' ) ); } - add_action( 'admin_notices', array( $this, 'subscribe_transcoder_admin_notice' ) ); add_action( 'admin_notices', array( $this, 'install_godam_admin_notice' ) ); add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_thickbox_on_transcoder_settings' ) ); @@ -447,25 +445,6 @@ public function transcoder_admin_notice() { endif; } - /** - * Display subscribe to the transcoding service - */ - public function subscribe_transcoder_admin_notice() { - if ( ! empty( $this->api_key ) ) { - return false; - } - $settings_page_link = 'admin.php?page=rt-transcoder'; - $class = 'notice notice-error'; - $valid_tags = array( - 'div' => array( 'class' => array() ), - 'p' => array(), - 'strong' => array(), - 'a' => array( 'href' => array() ), - ); - // translators: Markup to show the info about plugin subscription if no API key is there. - printf( wp_kses( __( '

IMPORTANT! The Transcoder plugin works with active transcoding services subscription plan. Click here to subscribe or enable.

', 'transcoder' ), $valid_tags ), esc_attr( $class ), esc_url( admin_url( $settings_page_link ) ) ); - } - /** * Set option to hide admin notice when user click on dismiss button. *