• i’m trying to discover the code but i have already the following question:

    WPINC is defined in wp-admin > load-scripts.php as:

    define( ‘WPINC’, ‘wp-includes’ );

    in wp-blog-header.php but i don’t see how this file knows the value of it?

Viewing 4 replies - 1 through 4 (of 4 total)
  • May I ask why you need to know this? If you explained what you were trying to do, we might be able to help.

    Thread Starter stijn03

    (@stijn03)

    I’m trying to learn the code as a practice to learn php :). sorry for the late reply, was in school

    Thread Starter stijn03

    (@stijn03)

    I also see that i didn’t pose my question well, apologises.

    Edit: in wp-blog-header.php WPINC is used in the following statement:

    require_once( ABSPATH . WPINC . ‘/template-loader.php’ );

    but i don’t know how this file can have access to WPINC

    WPINC is a PHP constant defined by WordPress.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘code understanding: WPINC in wp-blog-header.php’ is closed to new replies.