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

I am using the date and time in the post dialogue to log the date and time of future events, and would like to change the text to reflect that.

Is there an action hook I can tap into to achieve that?

Also, it would be perfect if I could pull those controls out of the 'publish dialogue', and add it to my own meta box.

Publish dialogue

share|improve this question
Friendly reminder to mark a correct answer, or provide feedback if your question wasn't sufficiently answered. :) – t31os Dec 9 '11 at 16:09
up vote 2 down vote accepted

Use a gettext filter and match against the text.

add_filter( 'gettext', 'filter_published_on', 10000, 2 );
function filter_published_on( $trans, $text ) {

    if( 'Published on: <b>%1$s</b>' == $text ) {
        global $post;
        switch( $post->post_type ) {
            case 'your-posttype': 
                return 'Whatever on: <strong>%1$s</strong>';
                return $trans;
    return $trans;

The alternative would be to copy the publish metabox code, and change the callback function for that metabox to your copied(and modified) version of the function, so you can do what you want with the callback code.

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.