From 9c4274335dd2688bd596a9248483c7f589d8e57b Mon Sep 17 00:00:00 2001 From: Samuel Bassah Date: Mon, 27 Feb 2023 15:41:09 +0000 Subject: [PATCH 1/2] `gpafp-replace-space-separator.php`: Added a new snippet to replace the space separator. --- .../gpafp-replace-space-separator.php | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 experimental/gpafp-replace-space-separator.php diff --git a/experimental/gpafp-replace-space-separator.php b/experimental/gpafp-replace-space-separator.php new file mode 100644 index 000000000..be541eec9 --- /dev/null +++ b/experimental/gpafp-replace-space-separator.php @@ -0,0 +1,21 @@ + Date: Mon, 27 Feb 2023 16:18:20 -0500 Subject: [PATCH 2/2] `gpafp-replace-space-separator.php`: Removed plugin header. --- experimental/gpafp-replace-space-separator.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/experimental/gpafp-replace-space-separator.php b/experimental/gpafp-replace-space-separator.php index be541eec9..0012f2a65 100644 --- a/experimental/gpafp-replace-space-separator.php +++ b/experimental/gpafp-replace-space-separator.php @@ -5,12 +5,6 @@ * * When the phone[nationalNumberFormatted] modifier is used, it seperates the phone number with a space. * This snippet allows you to change the space seperator. - * - * Plugin Name: GP Advanced Phone Field — Replace Space Seperator. - * Description: Replace the space seperator when the phone[nationalNumberFormatted]} merge tag is used. - * Author: Gravity Wiz - * Version: 0.1 - * Author URI: https://gravitywiz.com */ add_filter( 'gpapf_merge_tag_value', function( $text, $modifiers ) { if ( $modifiers['phone'] == 'nationalNumberFormatted' ) {