本文整理汇总了PHP中WP_Dependencies::all_deps方法的典型用法代码示例。如果您正苦于以下问题:PHP WP_Dependencies::all_deps方法的具体用法?PHP WP_Dependencies::all_deps怎么用?PHP WP_Dependencies::all_deps使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WP_Dependencies
的用法示例。
在下文中一共展示了WP_Dependencies::all_deps方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
function all_deps($handles, $recursion = false)
{
$r = parent::all_deps($handles, $recursion);
if (!$recursion) {
$this->to_do = apply_filters('print_scripts_array', $this->to_do);
}
return $r;
}
示例2: all_deps
/**
* @param mixed $handles
* @param bool $recursion
* @param mixed $group
* @return bool
*/
public function all_deps($handles, $recursion = false, $group = false)
{
$r = parent::all_deps($handles, $recursion);
if (!$recursion) {
/**
* Filter the array of enqueued styles before processing for output.
*
* @since 2.6.0
*
* @param array $to_do The list of enqueued styles about to be processed.
*/
$this->to_do = apply_filters('print_styles_array', $this->to_do);
}
return $r;
}
示例3: all_deps
public function all_deps($handles, $recursion = false, $group = false)
{
$r = parent::all_deps($handles, $recursion);
if (!$recursion) {
/**
* Filter the list of script dependencies left to print.
*
* @since 2.3.0
*
* @param array $to_do An array of script dependencies.
*/
$this->to_do = apply_filters('print_scripts_array', $this->to_do);
}
return $r;
}