wp_plugin_directory_constants [ WordPress Function ]
wp_plugin_directory_constants ( No parameters )
| Defined at: |
|
Soorgelijke functies: wp_initial_constants, wp_functionality_constants, wp_templating_constants, wp_cookie_constants, wp_ssl_constants
Defines plugin directory WordPress constants
Defines must-use plugin directory constants, which may be overridden in the sunrise.php drop-in
Source
<?php
function wp_plugin_directory_constants( ) {
if ( !defined('WP_CONTENT_URL') )
define( 'WP_CONTENT_URL', get_option('siteurl') . '/wp-content'); // full url - WP_CONTENT_DIR is defined further up
/**
* Allows for the plugins directory to be moved from the default location.
*
* @since 2.6.0
*/
if ( !defined('WP_PLUGIN_DIR') )
define( 'WP_PLUGIN_DIR', WP_CONTENT_DIR . '/plugins' ); // full path, no trailing slash
/**
* Allows for the plugins directory to be moved from the default location.
*
* @since 2.6.0
*/
if ( !defined('WP_PLUGIN_URL') )
define( 'WP_PLUGIN_URL', WP_CONTENT_URL . '/plugins' ); // full url, no trailing slash
/**
* Allows for the plugins directory to be moved from the default location.
*
* @since 2.1.0
* @deprecated
*/
if ( !defined('PLUGINDIR') )
define( 'PLUGINDIR', 'wp-content/plugins' ); // Relative to ABSPATH. For back compat.
/**
* Allows for the mu-plugins directory to be moved from the default location.
*
* @since 2.8.0
*/
if ( !defined('WPMU_PLUGIN_DIR') )
define( 'WPMU_PLUGIN_DIR', WP_CONTENT_DIR . '/mu-plugins' ); // full path, no trailing slash
/**
* Allows for the mu-plugins directory to be moved from the default location.
*
* @since 2.8.0
*/
if ( !defined('WPMU_PLUGIN_URL') )
define( 'WPMU_PLUGIN_URL', WP_CONTENT_URL . '/mu-plugins' ); // full url, no trailing slash
/**
* Allows for the mu-plugins directory to be moved from the default location.
*
* @since 2.8.0
* @deprecated
*/
if ( !defined( 'MUPLUGINDIR' ) )
define( 'MUPLUGINDIR', 'wp-content/mu-plugins' ); // Relative to ABSPATH. For back compat.
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- wp_plugin_directory_constants (WordPress Function) - WPSeek.com
WordPress lookup for wp_plugin_directory_constants, a WordPress Function. wpseek.com is a WordPress-centric search tool for developers and theme authors.
wpseek.com - wp_plugin_directory_constants() WordPress function reference ...
wp_plugin_directory_constants(). Defines plugin directory WordPress constants. Defines must-use plugin directory constants, which may be overridden in the ...
queryposts.com - wp_plugin_directory_constants
Function and Method Cross Reference. wp_plugin_directory_constants(). Defined at: /wp-includes/default-constants.php -> line 74. Referenced 1 times: ...
phpxref.ftwr.co.uk - wp-includes/ -> default-constants.php - yukei.net
wp_initial_constants() wp_plugin_directory_constants() wp_cookie_constants() wp_ssl_constants() wp_functionality_constants() wp_templating_constants() ...
lab.yukei.net