Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




wp_ajax_nopriv_autosave [ WordPress Function ]

wp_ajax_nopriv_autosave ( No parameters )
Defined at:



WordPress Core Ajax Handlers.

Source


<?php
function wp_ajax_nopriv_autosave() {
    
$id = isset( $_POST['post_ID'] ) ? (int) $_POST['post_ID'] : 0;

    if ( ! 
$id )
        
wp_die( -);

    
$message sprintf__('<strong>ALERT: You are logged out!</strong> Could not save draft. <a href="%s" target="_blank">Please log in again.</a>'), wp_login_url() );
    
$x = new WP_Ajax_Response( array(
        
'what' => 'autosave',
        
'id' => $id,
        
'data' => $message
    
) );
    
$x->send();
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics