set_ready_count( $count ); } /** * @return void */ public static function render_notice(): void { if ( ! current_user_can( 'edit_posts' ) ) { return; } if ( self::is_inbox_screen() ) { return; } $count = Settings::instance()->get_ready_count(); if ( $count < 1 ) { return; } $user_id = get_current_user_id(); if ( $user_id && (int) get_user_meta( $user_id, self::USER_META_DISMISSED_COUNT, true ) === $count ) { return; } $url = admin_url( 'admin.php?page=forwp-drive-inbox' ); $nonce = wp_create_nonce( self::AJAX_ACTION ); ?>
4WP Drive: %1$d document(s) ready for import. Open Inbox', '4wp-drive' ) ), (int) $count, esc_url( $url ) ); ?>