Skip to content

Commit

Permalink
fix load template function
Browse files Browse the repository at this point in the history
  • Loading branch information
dungps committed Aug 17, 2016
1 parent f6bf702 commit 6c82bcf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions inc/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -1060,6 +1060,10 @@ public function get_template() {
return $this->active;
}

public function get_template_dir() {
return apply_filters( 'dwqa_get_template_dir', 'dwqa-templates/' );
}

public function load_template( $name, $extend = false, $include = true ) {
if ( $extend ) {
$name .= '-' . $extend;
Expand Down

0 comments on commit 6c82bcf

Please sign in to comment.