From 5263d3790ed9f09cff2d5b26b37e06e0d797e58b Mon Sep 17 00:00:00 2001 From: Ajay D'Souza Date: Sat, 6 May 2023 20:54:45 +0100 Subject: [PATCH] Add Meta verification --- includes/admin/class-settings.php | 56 ++++++++++--------------------- readme.txt | 3 ++ 2 files changed, 21 insertions(+), 38 deletions(-) diff --git a/includes/admin/class-settings.php b/includes/admin/class-settings.php index 51dbed6..7041876 100644 --- a/includes/admin/class-settings.php +++ b/includes/admin/class-settings.php @@ -226,74 +226,46 @@ public static function settings_general() { public static function settings_third_party() { $settings = array( - 'statcounter_header' => array( + 'statcounter_header' => array( 'id' => 'statcounter_header', 'name' => '

' . esc_html__( 'StatCounter', 'add-to-all' ) . '

', 'desc' => '', 'type' => 'header', ), - 'sc_project' => array( + 'sc_project' => array( 'id' => 'sc_project', 'name' => esc_html__( 'Project ID', 'add-to-all' ), 'desc' => esc_html__( 'This is the value of sc_project in your StatCounter code.', 'add-to-all' ), 'type' => 'text', 'options' => '', ), - 'sc_security' => array( + 'sc_security' => array( 'id' => 'sc_security', 'name' => esc_html__( 'Security ID', 'add-to-all' ), 'desc' => esc_html__( 'This is the value of sc_security in your StatCounter code.', 'add-to-all' ), 'type' => 'text', 'options' => '', ), - 'google_analytics_header' => array( + 'google_analytics_header' => array( 'id' => 'google_analytics_header', 'name' => '

' . esc_html__( 'Google Analytics', 'add-to-all' ) . '

', 'desc' => '', 'type' => 'header', ), - 'ga_uacct' => array( + 'ga_uacct' => array( 'id' => 'ga_uacct', 'name' => esc_html__( 'Tracking ID', 'add-to-all' ), - 'desc' => esc_html__( 'You can find this under Admin » Tracking Info » Tracking Code when viewing your project settings and is of the form UA-XXXX-Y.', 'add-to-all' ), + 'desc' => sprintf( esc_html__( 'Find your %s', 'add-to-all' ), '' . esc_html__( 'Google Tag ID', 'add-to-all' ) . '' ), 'type' => 'text', 'options' => '', ), - 'ga_anonymize_ip' => array( - 'id' => 'ga_anonymize_ip', - 'name' => esc_html__( 'Anonymize IP', 'add-to-all' ), - 'desc' => esc_html__( 'Check this box to anonymize IPs before they are sent to Google Analytics.', 'add-to-all' ), - 'type' => 'checkbox', - 'options' => false, - ), - 'ga_linker' => array( - 'id' => 'ga_linker', - 'name' => esc_html__( 'Linker domains', 'add-to-all' ), - 'desc' => esc_html__( "If you'd like to implement cross-domain tracking, enter a comma-separated list of domains, e.g. ajaydsouza.com,webberzone.com", 'add-to-all' ), - 'type' => 'csv', - 'options' => '', - ), - 'tynt_header' => array( - 'id' => 'tynt_header', - 'name' => '

' . esc_html__( '33 Across (Tynt)', 'add-to-all' ) . '

', - 'desc' => '', - 'type' => 'header', - ), - 'tynt_id' => array( - 'id' => 'tynt_id', - 'name' => esc_html__( 'Tynt ID', 'add-to-all' ), - /* translators: 1: Code. */ - 'desc' => sprintf( esc_html__( 'This is the text between the brackets in %1$s in the SiteCTRL client script', 'add-to-all' ), "Tynt.push('ID HERE')" ), - 'type' => 'text', - 'options' => '', - ), - 'verification_header' => array( + 'verification_header' => array( 'id' => 'verification_header', 'name' => '

' . esc_html__( 'Site verification', 'add-to-all' ) . '

', 'desc' => '', 'type' => 'header', ), - 'google_verification' => array( + 'google_verification' => array( 'id' => 'google_verification', 'name' => esc_html__( 'Google', 'add-to-all' ), /* translators: 1: Google verification details page. */ @@ -301,7 +273,7 @@ public static function settings_third_party() { 'type' => 'text', 'options' => '', ), - 'bing_verification' => array( + 'bing_verification' => array( 'id' => 'bing_verification', 'name' => esc_html__( 'Bing', 'add-to-all' ), /* translators: 1: Bing verification details page. */ @@ -309,7 +281,15 @@ public static function settings_third_party() { 'type' => 'text', 'options' => '', ), - 'pinterest_verification' => array( + 'facebook_domain_verification' => array( + 'id' => 'facebook_domain_verification', + 'name' => esc_html__( 'Meta', 'add-to-all' ), + /* translators: 1: Meta tag details page. */ + 'desc' => sprintf( esc_html__( 'Value of the content portion of the Meta tag method. Read how to verify your domain in the %s', 'add-to-all' ), '' . esc_html__( 'Meta Business Help Centre', 'add-to-all' ) . '' ), + 'type' => 'text', + 'options' => '', + ), + 'pinterest_verification' => array( 'id' => 'pinterest_verification', 'name' => esc_html__( 'Pinterest', 'add-to-all' ), /* translators: 1: Pinterest meta tag details page. */ diff --git a/readme.txt b/readme.txt index 2a6b673..a6a334e 100644 --- a/readme.txt +++ b/readme.txt @@ -106,6 +106,9 @@ WebberZone Snippetz is one of the many plugins developed by WebberZone. Check ou *Add to All* plugin has now been rebranded to *WebberZone Snippetz*. The plugin code has also been rewritten to use OOP. +* New feature: + * Add Meta verification. Read how to verify your domain in the [Meta Business Help Centre](https://www.facebook.com/business/help/321167023127050) + * Enhancements: * Google Analytics code has been updated to GA4. Please update your [Google Tag ID](https://support.google.com/analytics/answer/9539598?hl=en) * *uninstall.php* now uses `get_sites()` function