Code Lover
Code Lover

Reputation: 8348

Wordpress Edit window modification

I want to add some note to Post Edit window so I can alert my Authors when they are going to add or edit post.

That could be simple styled text or some ticker or tabbed ui. Hope this would be enough to understand what I need help from you friends..

Upvotes: 0

Views: 61

Answers (1)

janw
janw

Reputation: 6662

you want an other pannel next/below a post/page edit/add screen?

add_action( 'add_meta_boxes', 'extra_box' );

function extra_box()
{
    $cssId = 'extra_box';
    $frontendTitle = 'test';
    $callbackFunction = 'extra_box_content';
    $place = 'side';
    $prio = 'high';

    //add to pages
    add_meta_box($cssId, $frontendTitle, $callbackFunction, 'post', $place, $prio);
    add_meta_box($cssId, $frontendTitle, $callbackFunction, 'page', $place, $prio);
}

function extra_box_content()
{
    echo 'ITS A BOX';
}

look at:
http://codex.wordpress.org/Function_Reference/add_meta_box

Upvotes: 1

Related Questions