Created
August 30, 2011 11:51
-
-
Save derpixler/1180731 to your computer and use it in GitHub Desktop.
post_submitbox_misc_actions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action('post_submitbox_misc_actions','my_post_option'); | |
add_action( 'save_post', 'save_my_post_option' ); | |
function my_post_option( ){ | |
echo '<div style="border-top:1px solid #DFDFDF;border-bottom:1px solid #FFF;clear:both;" id="post_anonym"><div style="padding: 6px 10px;float:left">'; | |
echo ' Hallo WordPress'; | |
echo '</div></div>'; | |
} | |
function save_my_post_option( $post_id ) { | |
// Hier können Daten gespeichert werden z.B. mit der Funktion update_post_meta(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment