From 0f85b91509c6476e4c80285e9da6671fc0c93294 Mon Sep 17 00:00:00 2001 From: mfilip Date: Tue, 25 Jun 2024 14:45:39 +0200 Subject: [PATCH] fix(settings): Fix build for settings link --- uk-address-postcode-validation/readme.txt | 3 +++ .../uk-address-postcode-validation.php | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/uk-address-postcode-validation/readme.txt b/uk-address-postcode-validation/readme.txt index ef1938a..602ae8d 100644 --- a/uk-address-postcode-validation/readme.txt +++ b/uk-address-postcode-validation/readme.txt @@ -83,6 +83,9 @@ Prices range between 2 and 2.5p per lookup, with alternate pricing options avail == Changelog == += 3.5.7 = +* Fix broken settings link on Plugins list page + = 3.5.6 = * Update Postcode Lookup to version 2.0.0 diff --git a/uk-address-postcode-validation/uk-address-postcode-validation.php b/uk-address-postcode-validation/uk-address-postcode-validation.php index 34666c8..f1702bf 100644 --- a/uk-address-postcode-validation/uk-address-postcode-validation.php +++ b/uk-address-postcode-validation/uk-address-postcode-validation.php @@ -33,8 +33,9 @@ add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), 'add_action_links' ); function add_action_links ( $actions ) { + $link = admin_url("admin.php?page=wc-settings&tab=integration§ion=idealpostcodes"); $mylinks = array( - 'Settings', + 'Settings', ); $actions = array_merge( $actions, $mylinks ); return $actions;