wp_after_load_template

动作钩子


do_action( 'wp_after_load_template', $_template_file, $require_once, $args )
参数
  • (string)
    $_template_file
    The full path to the template file.
    Required:
  • (bool)
    $require_once
    Whether to require_once or require.
    Required:
  • (array)
    $args
    Additional arguments passed to the template.
    Required:
定义位置
  • wp-includes/template.php
    , line 797
引入
6.1.0
弃用

在加载一个模板文件后触发。

do_action( 'wp_after_load_template', $_template_file, $require_once, $args );