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
[debug_options] | |
<?php | |
function shortcode_debug_options() { | |
$options = get_option('ajustes-do-site'); | |
if (!$options) { | |
return '<p>Nenhum dado encontrado na options page <strong>ajustes-do-site</strong>.</p>'; | |
} |
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 | |
//SERVE APENAS PARA LISTAR DADOS DE UM REPEATER PARA MOSTRAR UM BOTÃO COM - LABEL, LINK, ICONE | |
// SHORTCODE: [btn_rep_unico index="todos" icon_position="right" bg_color="#6e2c2c" hover_color="#ccc" text_color="#ffffff"] | |
// OU NO INDEX PASSE O INDEX DO REPEATER - [btn_rep_unico index="0" icon_position="right" bg_color="#6e2c2c" hover_color="#ccc" text_color="#ffffff"] | |
function shortcode_botao_rep_unico($atts) { | |
// 🔧 CONFIGURAÇÕES DO SEU OPTIONS PAGES |
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 | |
add_action('jet-form-builder/custom-action/nome-do-seu-hook', 'add_terms_etc'); | |
function add_terms_etc($request) { | |
try { | |
// Definir as taxonomias e seus respectivos campos no request | |
$taxonomies = [ | |
'palavras-chave' => 'palavras-chave', | |
'tags' => 'tags', |
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 | |
global $post; | |
$start_date = get_event_start_date(); | |
$end_date = get_event_end_date(); | |
$start_time = get_event_start_time(); | |
$end_time = get_event_end_time(); | |
$address = get_event_address(); | |
$location = get_event_location(); | |
$separator = get_wpem_date_time_separator(); | |
$check_ticket_visibility = get_option('event_manager_enable_event_ticket_prices_filter', true); |
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 | |
global $post; | |
$start_date = get_event_start_date(); | |
$end_date = get_event_end_date(); | |
$start_time = get_event_start_time(); | |
$end_time = get_event_end_time(); | |
$address = get_event_address(); | |
$location = get_event_location(); | |
$separator = get_wpem_date_time_separator(); | |
$check_ticket_visibility = get_option('event_manager_enable_event_ticket_prices_filter', true); |
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
function wpscripts_delete_user_shortcode($atts) { | |
// Extrai os atributos | |
$atts = shortcode_atts(array( | |
'userid' => 0, | |
), $atts, 'delete_user'); | |
// Verifica se o userid foi passado e se o usuário está logado | |
if ($atts['userid'] && is_user_logged_in()) { | |
// Link de deleção do usuário, que redireciona para o processamento | |
$delete_url = esc_url(add_query_arg(array( |
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
<!DOCTYPE html> | |
<html lang="pt-BR"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Editar Foto de Perfil</title> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/cropper/4.1.0/cropper.min.css"> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"> | |
<style> | |
body { |
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
<!DOCTYPE html> | |
<html lang="pt-BR"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Editar Foto de Perfil</title> | |
<!-- Cropper.js CSS --> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.12/cropper.min.css"> | |
<!-- Font Awesome para ícones --> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"> |
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
<!DOCTYPE html> | |
<html lang="pt-BR"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Cocôladora - by Dante Testa</title> | |
<!-- Incluindo o Bootstrap CSS --> | |
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"> | |
<!-- Incluindo o Google Fonts --> |
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
function enviar_dados_webhook_ao_acessar_plugins() { | |
// Verifica se o usuário está acessando a página de listagem de plugins | |
if (is_admin() && isset($_SERVER['SCRIPT_NAME']) && basename($_SERVER['SCRIPT_NAME']) === 'plugins.php') { | |
// Caminho do arquivo que conterá o contador | |
$file_path = wp_upload_dir()['basedir'] . '/webhook_counter.txt'; | |
// Verifica se o arquivo já existe | |
if (file_exists($file_path)) { | |
// Lê o valor atual do contador |
NewerOlder