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 ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



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