From 6771104ef5174eb5f4d2a10a7d6f02b0e6a89055 Mon Sep 17 00:00:00 2001 From: Chris Johnson <49479599+workeffortwaste@users.noreply.github.com> Date: Tue, 20 Feb 2024 10:31:47 +0000 Subject: [PATCH] Additional actions for tab content --- README.md | 2 ++ wp-settings-framework.php | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/README.md b/README.md index 6b597b6..660e383 100644 --- a/README.md +++ b/README.md @@ -192,6 +192,8 @@ Actions & Filters * `wpsf_do_settings_sections_[option_group]` - Settings form fields HTMLoutput (inside the `
`) * `wpsf_before_tab_links_[option_group]` - Before tabs HTML is output * `wpsf_after_tab_links_[option_group]` - After tabs HTML is output +* `wpsf_before_tab_content_[option_group]_[tab_id]` - Before the tab content is output (inside the tab) +* `wpsf_after_tab_content_[option_group]_[tab_id]` - After the tab content in output (inside the tab) Credits ------- diff --git a/wp-settings-framework.php b/wp-settings-framework.php index 0783928..9b19944 100644 --- a/wp-settings-framework.php +++ b/wp-settings-framework.php @@ -1416,9 +1416,25 @@ public function do_tabbed_settings_sections() { } ?> "> + _ + */ + do_action( 'wpsf_before_tab_content_' . sprintf( '%s_%s', $this->option_group, $tab_data['id'] ) ); + ?>
option_group, $tab_data['id'] ) ); ?>
+ _ + */ + do_action( 'wpsf_after_tab_content_' . sprintf( '%s_%s', $this->option_group, $tab_data['id'] ) ); + ?>