then( $getModel ) ->then( [ self::class, 'localize' ] ) ->then( Resources::enqueueApp( 'mo-scan' ) ); if ( ! $isSTPage ) { WPHooks::onAction( [ 'admin_notices', 'network_admin_notices' ] ) ->then( [ self::class, 'add_admin_notice' ] ); } } public static function add_admin_notice() { ?>
'wpml_mo_scan_ui_files', 'data' => $model, ]; } }