add_action

Examples

Adding excerpts to Pages

You could cut & paste the following code into the functions.php file of your theme, or add it in a plugin form, to allow excerpts for Pages.

<?php add_action( 'init', 'add_excerpt_to_page_post_type' );
function add_excerpt_to_page_post_type(){
  add_post_type_support( 'page', 'excerpt' );
}; ?>

Related

init_term_meta_cache

By the Web Warlock, Sunday, 9/May/2010 21:48

located in the file / of the plugin . Uses the hook, the , and functions, the methods and , and the property of object , mapping to fields , and . Calls at priority 1.