/**
* Source : GeekPress http://www.geekpress.fr/wordpress/astuce/sticky-postscustom-
post-types-1967/
*/
function seomix_add_sticky_post_support() {
global $post, $typenow;
if ( $typenow == 'saucisson' && current_user_can( 'edit_others_posts' ) ) : ?>
<script>
jQuery(function($) {
var sticky = "<br/><span id='sticky-span'><input id='sticky'
name='sticky' type='checkbox' value='sticky' <?php checked( is_sticky( $post-
>ID ) ); ?> /> <label for='sticky' class='selectit'><?php _e( "Stick this post
to the front page" ); ?></label><br /></span>";
$('[for=visibility-radio-public]').append(sticky);
});
</script>
<?php endif; }
add_action( 'admin_footer-post.php', 'seomix_add_sticky_post_support' );
add_action( 'admin_footer-post-new.php', 'seomix_add_sticky_post_support' );