Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * check if a file exists with logical fallback #
- * first check the child, then the parent, then the framework ##
- *
- * @param - string - $include - file with path ( from library/ )
- * @param - boolean - $echo - echo or return the results
- * @param - boolean - $require - include with require_once
- * @since 0.1
- * @uses ftf_get_option()
- * @return - echo|string|require_once
- */
- if ( !function_exists( 'ftf_locate_template' ) ) {
- function ftf_locate_template( $include, $echo = true, $require = false ){
- ...
- // apply filters ##
- $ftf_locate_template = apply_filters( 'ftf_locate_template', $ftf_locate_template );
- }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement