Skip to content
Chris Winters edited this page Apr 27, 2020 · 25 revisions

Includes Wiki

Things to know for those who need to know.

Directory & File Tree

The Directory & File Tree excludes PUC and SDK vendor files.

Tree

sudo apt-get install tree Type command tree to output tree

Development

Extending

The internal only posttype-includes.php template comes with two action hooks before and after content display.

  • Before Content Action Hook Name: includes_before_posttype_content
  • After Cotnent Action Hook Name: includes_after_posttype_content
/**
 * Any Custom Content Before Includes Post Type Content
 */
function customprefix_before_includes_content() {
	$html  = '<div class="container">';
	$html .= '<div class="row">';

	return $html;

}//end customprefix_before_includes_content()

add_action( 'includes_before_posttype_content', 'customprefix_before_includes_content' );
/**
 * Any Custom Content After Includes Post Type Content
 */
function customprefix_after_includes_content() {
	$html  = '</div><!-- .row -->';
	$html .= '</div><!-- .container -->';

	return $html;

}//end customprefix_after_includes_content()

add_action( 'includes_after_posttype_content', 'customprefix_after_includes_content' );
Clone this wiki locally