wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
post_submit_meta_box [ WordPress Function ]
post_submit_meta_box ( $post )
| Parameter: |
|
| Definiert in: |
|
Ähnliche Funktionen: post_slug_meta_box, post_author_meta_box, post_custom_meta_box, post_format_meta_box, link_submit_meta_box
Display post submit form fields.
Source
<?php
function post_submit_meta_box($post) {
global $action;
$post_type = $post->post_type;
$post_type_object = get_post_type_object($post_type);
$can_publish = current_user_can($post_type_object->cap->publish_posts);
?>
<div class="submitbox" id="submitpost">
<div id="minor-publishing">
<?php // Hidden submit button early on so that the browser chooses the right button when form is submitted with Return key ?>
<div style="display:none;">
<?php submit_button( __( 'Save' ), 'button', 'save' ); ?>
</div>
<div id="minor-publishing-actions">
<div id="save-action">
<?php if ( 'publish' != $post->post_status && 'future' != $post->post_status && 'pending' != $post->post_status ) { ?>
<input <?php if ( 'private' == $post->post_status ) { ?>style="display:none"<?php } ?> type="submit" name="save" id="save-post" value="<?php esc_attr_e('Save Draft'); ?>" tabindex="4" class="button button-highlighted" />
<?php } elseif ( 'pending' == $post->post_status && $can_publish ) { ?>
<input type="submit" name="save" id="save-post" value="<?php esc_attr_e('Save as Pending'); ?>" tabindex="4" class="button button-highlighted" />
<?php } ?>
<img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" class="ajax-loading" id="draft-ajax-loading" alt="" />
</div>
<?php if ( $post_type_object->public ) : ?>
<div id="preview-action">
<?php
if ( 'publish' == $post->post_status ) {
$preview_link = esc_url( get_permalink( $post->ID ) );
$preview_button = __( 'Preview Changes' );
} else {
?>
Beispiele [ wp-snippets.com ]
Top Google Suchergebnisse
- #12567 (make post_submit_meta_box more generic) – WordPress ...
The function post_submit_meta_box in wp-admin/includes/meta-boxes.php is a closed function with post statuses hard coded. A new post status registered ...
core.trac.wordpress.org - WordPress › Support » post_submit_meta_box() displaying as if my ...
I'm using post_submit_meta_box() to display the Publish metabox on a screen I'm developing for a plugin. The elements in the box are displaying as if my role ...
wordpress.org - metabox - How to add standard wordpress post_submit_meta_box ...
Dec 28, 2011 ... I need to use wordpress standard post_submit_meta_box at front end. I registed the box in a class, then, at front_end on the posting page, ...
wordpress.stackexchange.com - post_submit_meta_box
Function and Method Cross Reference. post_submit_meta_box(). Defined at: /wp -admin/includes/meta-boxes.php -> line 5. No references found.
phpxref.ftwr.co.uk
Nutzerduskussionen [ wordpress.org ]
- hunsford on "post_submit_meta_box() displaying as if my role is contributor instead of admin"
- hunsford on "post_submit_meta_box() displaying as if my role is contributor instead of admin"
- hunsford on "post_submit_meta_box() displaying as if my role is contributor instead of admin"
- asafche on "a way of filtering the post_submit_meta_box"