This file contains 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 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 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 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 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 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/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet"> | |
<!-- Incluindo o Google Fonts --> |
This file contains 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 |
This file contains 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 wp_scripts_update_produtos_destaque() { | |
// Argumentos para a consulta de todos os posts do CPT 'produtos' | |
$args = array( | |
'post_type' => 'produtos', | |
'post_status' => 'publish', | |
'numberposts' => -1 | |
); |
This file contains 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 | |
// Adicionar a coluna personalizada no CPT "clubes" | |
add_filter('manage_clubes_posts_columns', 'customize_clubes_columns'); | |
function customize_clubes_columns($columns) { | |
$columns['destaque'] = __('Destaque', 'textdomain'); | |
return $columns; | |
} | |
// Preencher a coluna com um label e um botão para marcar/desmarcar o termo "destaque" |
This file contains 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 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()) { |
NewerOlder