to dirprocess: writing plugins rev 26 oct 2019
Category: web:cms:cp/wp:plugins
* include files with the usual include, require.
* defining paths:
plugin_dir_path( __FILE__ )
- returns the trailing slash in the filepath.
- will output relative to the current file you call it from,
so if your include statement is done from a subdirectory
inside your plugin file structure you'll get the subdirectory
back too.
plugin_dir_path(__DIR__)
- gives relative path
http://codex.wordpress.org/Function_Reference/plugin_dir_path
http://codex.wordpress.org/Determining_Plugin_and_Content_Directories
useful to define plugin directory at beginning:
define( 'PLUGIN_DIR', dirname(__FILE__).'/' );
_______________________________________________________
begin 26 oct 2019
-- 0 --