the_template() static public method

See also: http://stackoverflow.com/a/7983863/102699
static public the_template ( string $template_slug, array | string $_template_vars = [], WPLib_Item_Base | object $item = null )
$template_slug string
$_template_vars array | string
$item WPLib_Item_Base | object
コード例 #1
0
ファイル: class-theme-base.php プロジェクト: wpscholar/wplib
 /**
  * @param string $template
  * @param array|string $_template_vars
  */
 function the_template($template, $_template_vars = array())
 {
     WPLib::the_template($template, $_template_vars, WPLib::theme());
 }
コード例 #2
0
ファイル: class-view-base.php プロジェクト: wpscholar/wplib
 /**
  * @param string $template
  * @param array $_template_vars
  */
 function the_template($template, $_template_vars = array())
 {
     WPLib::the_template($template, $_template_vars, $this->owner);
 }