Hooks/Action Reference/builder add meta data

From IThemes Codex
Revision as of 08:54, July 1, 2010 by Gaarai (Talk | contribs)
Jump to: navigation, search

Contents

Description

This action hook is called in the Builder core's header.php template file inside the head tag. By default, the builder_seo_options function is attached to this action, which outputs a series of meta tags to add additional information about the current page view.

Possible Uses

This action could be used to tie in any logic that needs to run or output inside the head tag. However, in general, it is better to use the wp_head action if you simply need to run some code inside the head tag. Thus, the use of this action is best kept limited to modifying the meta tag output for the page.

Parameters

None

Example Use

To supply a custom meta output, the default function can be replaced with a custom one. The following could be added to a child theme's functions.php file in order to provide the customized meta tags:

<?php
	remove_action( 'builder_add_meta_data', 'builder_seo_options' );
	add_action( 'builder_add_meta_data', 'custom_builder_seo_options' );
	
	function custom_builder_seo_options() {
		/* Custom output code */
	}
?>

Back to Hooks

Personal tools
Namespaces
Variants
Actions
iThemes Codex
Codex Navigation
Toolbox