Define constants for easy development

No need to remember long paths or infinitely add …/…/…/

//Get theme dir
define(‘td’, get_bloginfo(‘template_directory’).’/’ );
//Get home dir
define(‘hd’, esc_url(home_url( ‘/’ )));
//Get temes path
define(‘tp’, get_template_directory(’’).’/’);
//Get home path
define(‘hp’, get_home_path());


Read-only archive: https://petitions.classicpress.net/posts/116/define-constants-for-easy-development

Author: Nodws

Vote count: 7

Status: open

Tags:

  • request-add-feature
  • difficulty-moderate

Comments