Inventory_Presser_Template_Provider::add_hooks()
Adds hooks to catch requests for vehicle singles and archives.
Return Return
(void)
Source Source
File: includes/class-template-provider.php
public function add_hooks() {
add_filter( 'single_template', array( $this, 'maybe_provide_template' ) );
add_filter( 'archive_template', array( $this, 'maybe_provide_template' ) );
// Return the post content as part of the vehicle description.
//add_filter( 'get_post_metadata', array( $this, 'return_post_content_as_vehicle_description' ), 10, 5 );
}
Expand full source codeCollapse full source codeView on Github