appthemes_meta

Description

Runs in the html head where the meta tags are located. This is an ideal spot to load any additional meta tags. For loading .css and .js files, you should use wp_head() instead.

<?php
function appthemes_meta() { 
    do_action('appthemes_meta'); 
}
?>

Example

If you’d like to insert a Google Analytics meta tag without modifying the header.php theme file, this is the perfect hook to use. Here’s how to do it. Drop the following code in your functions.php file.

<?php
function insert_google_analytics_meta() { 
    echo '<meta name="google-site-verification" content="dBw5CvburAxi537Rp9qi">';
}
add_action( 'appthemes_meta', 'insert_google_analytics_meta' ); 
?>

You’d replace the content=”” with the unique one Google Analytics provides you, however.

Changelog

  • since 1.1

Source File

appthemes_meta() is located in includes/appthemes-hooks.php.

Your rating: none
Rating: 5 - 1 vote

Popular Add-ons

Daleel for Vantage

Daleel is a fresh and clean Child theme for Vantage 4.x.


(6)
$49

A-Z Business Listing

Inserts an A to Z listing of Business's for Vantage


(5)
$19

Ads Auto Re-Lister

Set your ClassiPress website to auto pilot mode! ...This plugin will…


(9)
$19