WordPress核心常数--WPINC

原文来自:http://hookr.io/constants/wpinc/

The WordPress Core WPINC constant.

Value (string)

'wp-includes'

Usage

if ( defined( 'WPINC' ) ) {

    // grab the value
    $value = constant( 'WPINC' );

    if ( !empty( $value ) ) {
    // go forth and prosper...
   }
}

Defined (4)

The constant is defined in the following location(s).(在以下位置定义的常数)Version(4.7.4)

/wp-admin/load-scripts.php 

  1. define( 'WPINC', 'wp-includes' );

/wp-admin/load-styles.php 

  1. define( 'WPINC', 'wp-includes' );

/wp-load.php 

  1. define( 'WPINC', 'wp-includes' );

/wp-settings.php 

  1. define( 'WPINC', 'wp-includes' );