Switch language

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




update_recently_edited [ WordPress Function ]

update_recently_edited ( $file )
Parameters:
  • (unknown_type) $file
Defined at:



{@internal Missing Short Description}}

Source


<?php
function update_recently_edited$file ) {
    
$oldfiles = (array ) get_option'recently_edited' );
    if ( 
$oldfiles ) {
        
$oldfiles array_reverse$oldfiles );
        
$oldfiles[] = $file;
        
$oldfiles array_reverse$oldfiles );
        
$oldfiles array_unique$oldfiles );
        if ( 
count$oldfiles ))
            
array_pop$oldfiles );
    } else {
        
$oldfiles[] = $file;
    }
    
update_option'recently_edited'$oldfiles );
}
?>

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