Site icon Hip-Hop Website Design and Development

Embrace recordsdata in capabilities.php

This can be a rewritten put up for the reason that method I worded my previous put up completely confused everybody.

MikeSchinkel exhibits how he makes use of Embrace recordsdata in his theme’s capabilities.php file On this Stackexchange put up: Organizing Code in your WordPress Theme's capabilities.php File?

Instance:

require_once('contains/my-file.php');

How would you write this php line if the file to incorporate is inside a listing, contained in the wp-content listing? Location: [wordpress install]/wp-content/new-directory/my-file.php

The one method I can consider is like this:

require_once( ABSPATH . '/wp-content/new-directory/my-file.php' );

Would this be the right method?