Skip to Content

Deprecated

nebula_prefer_child_directory()

Prefer the child theme over the parent theme (if the directory or file exists). Otherwise, use the parent theme.

PHP April 19, 2017

Deprecated

This function is deprecated in favor of get_theme_file_uri() and get_theme_file_path() core WordPress functions as of WordPress 4.7.

Usage

PHP
nebula_prefer_child_directory($directory, $uri)

Parameters

$directory
(Required) (String) The directory or file to look for
Default: None

$uri
(Optional) (Boolean) Whether to return a URI (true) or path (false)
Default: true

Request or provide clarification »

Examples

PHP
<?php echo nebula_prefer_child_directory('/images/logo.png'); ?>