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
add_action('admin_bar_menu', 'show_template'); | |
function show_template() { | |
global $template; | |
print_r($template); | |
} |
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
<div class="row"> | |
<div class="col-md-12 text-default"> | |
<div class="newsletter widget_wysija_cont html_wysija"> | |
<!-- Conferir o ID do form nas configurações do formulário, versão HTML --> | |
<div id="msg-form-wysija-html53c535dfee43f-1" class="wysija-msg ajax"></div> | |
<form id="form-wysija-html53c535dfee43f-1" method="post" action="#wysija" class="form-inline widget_wysija html_wysija"> | |
<div class="col-md-3 col-sm-12 col-xs-12 form-group texto"> | |
<i class="fa fa-envelope-o"></i> Assine nossa Newsletter | |
</div> | |
<div class="col-md-3 col-sm-6 col-xs-12 form-group wysija-paragraph"> |
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 | |
/* | |
Enviar e-mail para o administrador se houver posts para revisão | |
Dica do @GugaAlves: incluir link para a edição do post no admin, facilitando a vida do admin que receber este email. | |
Dica do Gustavo Bordoni (@webord): incluir na função o $post (objeto para WP_Query) para não ficar passando o $post_id a cada save. | |
Dica do Manoel Netto: Incluir a verificação "! wp_is_post_revision( $post )" para não enviar e-mail a cada auto save. | |
*/ |
NewerOlder