$meta Row links. * @param string $file Plugin file, relative to the plugins folder. * @return array */ public static function row_meta( $meta, $file ): array { $meta = is_array( $meta ) ? $meta : array(); if ( plugin_basename( ASKSHELF_FILE ) !== $file || ! Connection::is_connected() || ! current_user_can( 'manage_woocommerce' ) ) { return $meta; } $meta[] = sprintf( /* translators: %s: link to the Askshelf page. */ esc_html__( 'Deleting Askshelf disconnects this store but doesn’t cancel a paid plan. Cancel it first under %s.', 'askshelf' ), sprintf( '%s', esc_url( admin_url( 'admin.php?page=wc-admin&path=' . rawurlencode( Page::PATH ) ) ), esc_html__( 'Askshelf › Settings › Manage plan', 'askshelf' ) ) ); return $meta; } }