WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can i progammatically see if the page that is currently open in the wordpress admin is 'About-Me';

I wish to run specific functions depending on the page the user is editing in the wordpress-admin.

share|improve this question

You can use the $post global.

Somewhere inside of a function, hooked in appropriately to the post-edit screen:

// Globalize the $post variable
global $post;
// check to see that we are on a page, with a title "About Me"
if ( 'page' == $post->post_type && 'About Me' == $post->post_title ) {
    // This is the "About Me" page;
    // do something
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.