acf_get_dir()
Deprecated since 5.6.8. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.
acf_get_dir
Returns the plugin url to a specified file.
No Hooks.
Returns
String.
Usage
acf_get_dir( $filename );
- $filename(string)
- The specified file.
Default:''
Changelog
| Since 5.0.0 | Introduced. |
| Deprecated since | 5.6.8 |
acf_get_dir() acf get dir code ACF 6.0.4
function acf_get_dir( $filename = '' ) {
// Warning.
_deprecated_function( __FUNCTION__, '5.6.8', 'acf_get_url()' );
// Return.
return acf_get_url( $filename );
}