Skip to content

Commit

Permalink
Add Meta verification
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaydsouza committed May 6, 2023
1 parent 68bb606 commit 5263d37
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 38 deletions.
56 changes: 18 additions & 38 deletions includes/admin/class-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,90 +226,70 @@ public static function settings_general() {
public static function settings_third_party() {

$settings = array(
'statcounter_header' => array(
'statcounter_header' => array(
'id' => 'statcounter_header',
'name' => '<h3>' . esc_html__( 'StatCounter', 'add-to-all' ) . '</h3>',
'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' => '<h3>' . esc_html__( 'Google Analytics', 'add-to-all' ) . '</h3>',
'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 &raquo; Tracking Info &raquo; 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' ), '<a href="https://www.google.com/webmasters/verification/verification" target="_blank">' . esc_html__( 'Google Tag ID', 'add-to-all' ) . '</a>' ),
'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' => '<h3>' . esc_html__( '33 Across (Tynt)', 'add-to-all' ) . '</h3>',
'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' ), "<code>Tynt.push('ID HERE')</code>" ),
'type' => 'text',
'options' => '',
),
'verification_header' => array(
'verification_header' => array(
'id' => 'verification_header',
'name' => '<h3>' . esc_html__( 'Site verification', 'add-to-all' ) . '</h3>',
'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. */
'desc' => sprintf( esc_html__( 'Value of the content portion of the HTML tag method on the %s', 'add-to-all' ), '<a href="https://www.google.com/webmasters/verification/verification" target="_blank">' . esc_html__( 'verification details page', 'add-to-all' ) . '</a>' ),
'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. */
'desc' => sprintf( esc_html__( 'Value of the content portion of the HTML tag method on the %s', 'add-to-all' ), '<a href="https://www.bing.com/webmaster/" target="_blank">' . esc_html__( 'verification details page', 'add-to-all' ) . '</a>' ),
'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' ), '<a href="https://www.facebook.com/business/help/321167023127050" target="_blank">' . esc_html__( 'Meta Business Help Centre', 'add-to-all' ) . '</a>' ),
'type' => 'text',
'options' => '',
),
'pinterest_verification' => array(
'id' => 'pinterest_verification',
'name' => esc_html__( 'Pinterest', 'add-to-all' ),
/* translators: 1: Pinterest meta tag details page. */
Expand Down
3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5263d37

Please sign in to comment.