de

wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren




get_post_custom_keys [ WordPress Function ]

get_post_custom_keys ( $post_id = 0 )
Parameter:
  • (int) $post_id post ID
Links:
Gibt zurück:
  • (array|null) Either array of the keys, or null if keys could not be retrieved.
Definiert in:



Retrieve meta field names for a post.

If there are no meta fields, then nothing (null) will be returned.

Source


<?php
function get_post_custom_keys$post_id ) {
    
$custom get_post_custom$post_id );

    if ( !
is_array($custom) )
        return;

    if ( 
$keys array_keys($custom) )
        return 
$keys;
}
?>

Beispiele [ wp-snippets.com ]

Top Google Suchergebnisse

Mehr ...

0 Nutzerkommentare

Noch keine. Sei der Erste!

Neu hinzufügen ...



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