Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Commit 3ec5f43

Browse files
committed
add network admin notice hook
1 parent cc9bef6 commit 3ec5f43

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

admin/rt-transcoder-admin.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ public function __construct() {
7070

7171
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts_styles' ) );
7272
add_action( 'admin_notices', [ $this, 'show_transcoding_disabled_notice' ], 12 );
73+
if ( is_multisite() ) {
74+
add_action( 'network_admin_notices', [ $this, 'show_transcoding_disabled_notice' ], 12 );
75+
}
7376

7477
add_filter( 'attachment_fields_to_edit', array( $this, 'edit_video_thumbnail' ), 11, 2 );
7578
add_filter( 'attachment_fields_to_save', array( $this, 'save_video_thumbnail' ), 11, 1 );

0 commit comments

Comments
 (0)