@@ -87,11 +87,9 @@ public function __construct() {
8787 add_action ( 'init ' , array ( $ this , 'disable_encoding ' ) );
8888 }
8989 if ( is_multisite () ) {
90- add_action ( 'network_admin_notices ' , array ( $ this , 'subscribe_transcoder_admin_notice ' ) );
9190 add_action ( 'network_admin_notices ' , array ( $ this , 'install_godam_admin_notice ' ) );
9291 add_action ( 'network_admin_enqueue_scripts ' , array ( $ this , 'enqueue_thickbox_on_transcoder_settings ' ) );
9392 }
94- add_action ( 'admin_notices ' , array ( $ this , 'subscribe_transcoder_admin_notice ' ) );
9593 add_action ( 'admin_notices ' , array ( $ this , 'install_godam_admin_notice ' ) );
9694 add_action ( 'admin_enqueue_scripts ' , array ( $ this , 'enqueue_thickbox_on_transcoder_settings ' ) );
9795
@@ -447,25 +445,6 @@ public function transcoder_admin_notice() {
447445 endif ;
448446 }
449447
450- /**
451- * Display subscribe to the transcoding service
452- */
453- public function subscribe_transcoder_admin_notice () {
454- if ( ! empty ( $ this ->api_key ) ) {
455- return false ;
456- }
457- $ settings_page_link = 'admin.php?page=rt-transcoder ' ;
458- $ class = 'notice notice-error ' ;
459- $ valid_tags = array (
460- 'div ' => array ( 'class ' => array () ),
461- 'p ' => array (),
462- 'strong ' => array (),
463- 'a ' => array ( 'href ' => array () ),
464- );
465- // translators: Markup to show the info about plugin subscription if no API key is there.
466- printf ( wp_kses ( __ ( '<div class="%1$s"><p><strong>IMPORTANT!</strong> The Transcoder plugin works with active transcoding services subscription plan. <a href="%2$s">Click here</a> to subscribe or enable.</p></div> ' , 'transcoder ' ), $ valid_tags ), esc_attr ( $ class ), esc_url ( admin_url ( $ settings_page_link ) ) );
467- }
468-
469448 /**
470449 * Set option to hide admin notice when user click on dismiss button.
471450 *
0 commit comments