Skip to content
This repository has been archived by the owner on Jul 7, 2022. It is now read-only.

Function : theme_assets_url()

Blair2004 edited this page Nov 1, 2014 · 2 revisions

Description: it returns per default URL of the assets directory from active theme. Takes one parameters which can be a literal string with relative path or Array with different input which will been converted to literal string and added to assets directory. This function should be only used inside theme files and by theme developers.

Example : <img src="<?php theme_assets_dir( '/img/sample.png' );?>" alt="custom">