From 3fff8ce72afe0c4807840b10706ad7c7892f33d9 Mon Sep 17 00:00:00 2001 From: Ajay D'Souza Date: Mon, 19 Feb 2024 21:07:27 +0000 Subject: [PATCH] Link to Tools page --- includes/admin/settings/class-settings.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/includes/admin/settings/class-settings.php b/includes/admin/settings/class-settings.php index 2160cfa..4285133 100644 --- a/includes/admin/settings/class-settings.php +++ b/includes/admin/settings/class-settings.php @@ -151,6 +151,7 @@ public function __construct() { add_action( 'wp_ajax_nopriv_' . self::$prefix . '_tag_search', array( $this, 'tags_search' ) ); add_action( 'wp_ajax_' . self::$prefix . '_tag_search', array( $this, 'tags_search' ) ); + add_action( 'crp_settings_page_header', array( $this, 'settings_page_header' ) ); } /** @@ -1396,4 +1397,20 @@ public static function tags_search() { echo wp_json_encode( $results ); wp_die(); } + + /** + * Add a link to the Tools page from the settings page. + * + * @since 3.5.0 + */ + public static function settings_page_header() { + ?> +

+ + + +

+ +