Created
May 23, 2012 22:52
-
-
Save pedroelsner/2778332 to your computer and use it in GitHub Desktop.
#4 - Plugin WordPress - Hello Word
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Adiciona/Atualiza valor da variável | |
update_post_meta( $post_id, $meta_key, $meta_value, $prev_value ); | |
// Retorna o valor da variável | |
get_post_meta( $post_id, $meta_key, $single ) | |
// Apaga a variável | |
delete_post_meta( $post_id, $meta_key, $meta_value ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment