Created
May 23, 2012 22:54
-
-
Save pedroelsner/2778345 to your computer and use it in GitHub Desktop.
#6 - 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 | |
function hello_world_content_filter( $content ) { | |
global $post; | |
// Verifica a opção no banco de dados para este post ou página | |
if ( get_post_meta( $post->ID, 'hello_world_opt_mostrar_mensagem', true ) == '1' ) { | |
$content .= '<strong>Hello World!</strong>'; | |
} | |
return $content; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment