-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Chris Winters edited this page Apr 27, 2020
·
25 revisions
Things to know for those who need to know.
The Directory & File Tree excludes PUC and SDK vendor files.
sudo apt-get install tree
Type command tree
to output tree
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' );