From dc1ff1f65d469effc608c7861bad7e30daa40740 Mon Sep 17 00:00:00 2001 From: Ryan Welcher Date: Thu, 6 Feb 2025 15:04:34 -0500 Subject: [PATCH 1/2] Rename workflow --- .github/workflows/deploy-to-staging.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-to-staging.yml b/.github/workflows/deploy-to-staging.yml index 489a20b..bfbf5e2 100644 --- a/.github/workflows/deploy-to-staging.yml +++ b/.github/workflows/deploy-to-staging.yml @@ -1,4 +1,4 @@ -name: Deploy plugin to Production +name: Deploy plugin to Staging on: push: From 49a88565fd805d80baf693f71eb7cbb383ed5b91 Mon Sep 17 00:00:00 2001 From: Ryan Welcher Date: Thu, 6 Feb 2025 15:07:11 -0500 Subject: [PATCH 2/2] Add hook to test staging deploys --- plugin.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/plugin.php b/plugin.php index c488a89..363a796 100644 --- a/plugin.php +++ b/plugin.php @@ -19,3 +19,19 @@ // Exit if accessed directly. defined( 'ABSPATH' ) || exit; + +/** + * Initialize plugin functionality on WordPress init. + * Adds custom content to the site header. + * + * @return void + */ + +// Add action to wp_head to insert content in header. +add_action( + 'wp_head', + function() { + // Output custom meta tags or other header content. + echo 'JUST A TEST'; + } +);