pagenow

WordPress uses this global variable to store the current PHP file being executed, e.g., post.php or edit.php. It is set in [wordpress root folder]/wp-includes/vars.php, which is included in [wordpress root folder/wp-includes/settings.php.

pagenow is used to identify the current action being executed. Ideally, plugin and theme developers need not use this global variable, it is used internally by WordPress. Conditional Tags should be used to identify the current template file.

Back to full list of global variables.

Technorati tags: ,

Advertisements

One Response to “pagenow”


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: