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
/* | |
* Remove o preview de fotos da página de edição de usuário | |
*/ | |
function aditionalCSS(){ | |
echo '<style type="text/css">#qd_user_image_id-status { display: none !important; }</style>'; | |
} | |
add_action('admin_footer', 'aditionalCSS'); |
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 | |
$exclude_category = get_term_by( 'name', 'NOME DA CATEGORIA', 'qewp_category_events' ); | |
$exclude_category_id = $exclude_category->term_id; | |
?> |
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
<meta http-equiv="refresh" content="0; url=http://example.com/" /> |
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
$author_image = get_user_meta( $author_id, 'qd_user_image', true ); | |
// Pega a imagem inserida para o custom field | |
if ( $author_image ) { | |
echo '<img src="'. $author_image .'" />'; | |
// Pega a imagem do Gravatar | |
} else { | |
echo get_avatar( $author_id, 128 ); | |
} |
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
/** | |
* Manipulate default country | |
*/ | |
add_filter( 'default_checkout_country', 'change_default_checkout_country' ); | |
function change_default_checkout_country() { | |
return 'BR'; // country code | |
} |
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
**/node_modules/ | |
*.DS_Store | |
local-config.php | |
assets/components | |
assets/dist/*.css | |
assets/dist/*.js | |
page-tester.php |
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 | |
$args = array( | |
'post_id' => 2, | |
'query_results' => $posts_data, | |
// 'component' => 'component-clients-01', | |
'component' => get_template_directory() . '/component-clients-01.php', | |
'external_component' => true, | |
'show_link_buttom' => 'Ver mais', | |
'slick_slider_to_show' => 3, | |
'slick_slider_to_scroll' => 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
import java.sql.Connection; | |
import java.sql.DriverManager; | |
import java.sql.ResultSet; | |
import java.sql.Statement; | |
public class Main { | |
private static final String URL = "jdbc:mysql://localhost/testdb"; | |
private static final String USERNAME = "root"; |
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
<form action="#" class="form-field" id="ID_DO_SELECT"> | |
<?php | |
$taxonomia = 'ID_DA_SUA_TAXONOMIA'; | |
$args = array( | |
'orderby' => 'name', | |
'parent' => 0, | |
'taxonomy' => $taxonomia, | |
'hide_empty' => 0, | |
); | |