Skip to content

Latest commit

 

History

History
69 lines (35 loc) · 2.34 KB

b-globals-reference.md

File metadata and controls

69 lines (35 loc) · 2.34 KB

Appendix B - Globals Reference Edit in GitHub

PHP global variables used throughout WordPress Core.

  • $blog_id

    Type: integer

    Set in: wp-settings.php 🔍

    Default value: 1

    Description: Current site ID.

  • $required_mysql_version

    Type: string

    Set in: wp-settings.php 🔍

    Description: Holds the required MySQL version.

  • $required_php_version

    Type: string

    Set in: wp-settings.php 🔍

    Description: Holds the required PHP version.

  • $tinymce_version

    Type: string

    Set in: wp-settings.php 🔍

    Description: Holds the TinyMCE version.

  • $wp_db_version

    Type: string

    Set in: wp-settings.php 🔍

    Description: Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

  • $wp_local_package

    Type: string

    Set in: wp-settings.php 🔍

  • $table_prefix

    Type: string

    Set in: wp-config-sample.php 🔍

    Default value: 'wp_'

    Description: WordPress database table prefix. Must only contain numbers, letters, and underscores.

  • $wp_version

    Type: string

    Set in: wp-settings.php 🔍

    Description: The WordPress version string.