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
/* Desenvolvido por: Dante Testa | |
Shortcode para Baixar um Arquivo do Google Drive a partir de link de compartilhamento público | |
PARA CPT = >> [gdrive_download_cpt metafield="nome_do_metafield" label="Baixar agora" class="btn-download"] | |
PARA USER = >> [gdrive_download_user metafield="nome_do_metafield" label="Baixar agora" class="btn-download"] | |
FORMA MANUAL: https://drive.google.com/uc?export=download&id=1YXbUrLOpqPIiSIweu9VyC7H2UI4SrN-y | |
EXEMPLO: https://drive.google.com/uc?export=download&id=1YXbUrLOpqPIiSIweu9VyC7H2UI4SrN-y | |
Adicione o trecho abaixo no functions.php do seu tema | |
*/ |
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
/* Mostra um PDF do google Drive embedado no Front via URL salva no Metabox do User Corrente | |
USO MANUAL: | |
<iframe src="LINK" width="100%" height="600px" class="pdf_gdrive" style="border:0;"> | |
EXEMPLO: Crie um campo chamado _pdf no metabox do user OU no CPT desejado. | |
Adicione o trecho de código abaixo no functions.php do seu tema | |
Adicione o shortcode [pdf_gdrive_user field="_pdf" size="600px"] | |
Adicione o shortcode [pdf_gdrive_cpt field="_pdf" size="600px"] | |
*/ |
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
<style> | |
input[name='mensalidade']{ | |
display: none; | |
} | |
#mensagem{ | |
display: none; | |
color: white; | |
background:green; | |
font-size: 22px; | |
font-weight: bold; |
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
/* | |
Crie um listing grid com uma class na no titulo h2 chamado .titulo-modelo | |
Altere o Select do script pelo seu select name corrente | |
*/ | |
<script> |
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
<script> | |
var select = document.getElementById('nome_paciente'); | |
var options = select.options; | |
var arr = new Array(); | |
for (var i = 0; i < options.length; i++) { | |
arr[i] = options[i]; | |
} | |
arr.sort(function(a, b) { | |
return a.text == b.text ? 0 : a.text < b.text ? -1 : 1 |
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
jQuery(document).ready(function(){ | |
setTimeout(function(){ | |
var post_name = document.querySelector('#post_name .jet-listing-dynamic-field__content').innerText; | |
var radio_option = document.querySelector('input[name="post_type"][value="' + post_name + '"]'); | |
radio_option.click(); | |
},1000); |
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 | |
//Versão Atualizada 2025 --- | |
// Adiciona uma nova coluna com o ID do usuário na tabela de usuários | |
function show_id_user( $columns ) { | |
$columns['user_id'] = 'ID'; | |
return $columns; | |
} | |
add_filter( 'manage_users_columns', 'show_id_user' ); | |
// Preenche a nova coluna com o ID do usuário |
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
<FilesMatch "\.(jpg|jpeg|png|gif|pdf)$"> | |
Header set X-Robots-Tag "noindex, nofollow" | |
</FilesMatch> | |
/* | |
apos RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] | |
*/ | |
RewriteCond %{REQUEST_URI} ^(.*)?/(wp-content/uploads/.*)$ |
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
/*************** CRIE UM ARQUIVO CHAMADO check_carrinho.php *****************/ | |
<style> | |
.frete_error{ | |
color:white !important; | |
background:red !important; | |
padding:10px 20px!important; | |
font-size: 22px; | |
font-weight:bold; |