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
Show hidden characters
| { | |
| "folders": | |
| [ | |
| { | |
| "path": "project/path/here" | |
| } | |
| ], | |
| "settings": { | |
| "phpcs": { | |
| "phpcs_execute_on_save": false, |
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( 'phpmailer_init', 'phpmailer_disable_self_signed' ); | |
| function phpmailer_disable_self_signed( PHPMailer $phpmailer ) { | |
| $phpmailer->SMTPOptions = ['ssl'=> ['allow_self_signed' => 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 | |
| error_reporting(E_ALL); | |
| ini_set('display_errors', 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
| <cfargument name="testua" default="0"> | |
| <cfloop index="intChar" from="1" to="#Len( testua )#" step="1"> | |
| <cfset strChar = Mid( testua, intChar, 1 ) /> | |
| <cfdump var="[#intChar#:#asc(strChar)#:#strChar#]"> | |
| </cfloop> | |
| <cfabort> |
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 | |
| function wpml_languages_list() { | |
| $languages = icl_get_languages('skip_missing=0'); | |
| if(!empty($languages)){ | |
| echo '<div id="icl_lagunage_menu"><ul>'; | |
| foreach($languages as $l){ | |
| echo '<li>'; | |
| if($l['active']) { | |
| $class = ' class="active"'; | |
| } |
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 wp_bootstrap_pagination() | |
| { | |
| if( is_singular() ) { | |
| return; | |
| } | |
| global $wp_query; | |
| if( $wp_query->max_num_pages <= 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
| # http://jvalenzuela.es/robots-txt-para-wordpress/ | |
| User-agent: * | |
| Disallow: /wp-login | |
| Disallow: /wp-admin | |
| Disallow: //wp-includes/ | |
| Disallow: /*/feed/ | |
| Disallow: /*/trackback/ | |
| Disallow: /*/attachment/ | |
| Disallow: /author/ | |
| Disallow: /*/page/ |
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
| # https://github.com/scrooloose/syntastic | |
| let g:syntastic_always_populate_loc_list = 0 | |
| let g:syntastic_auto_loc_list = 0 | |
| let g:syntastic_check_on_open = 0 | |
| let g:syntastic_check_on_wq = 0 | |
| let g:loaded_syntastic_php_phpcs_checker = 0 | |
| let g:loaded_syntastic_php_phplint_checker = 0 | |
| let g:loaded_syntastic_php_phpmd_checker = 0 |
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 | |
| // remove plugin default integration | |
| remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10); | |
| remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10); | |
| // disable breadcrumbs (optional) | |
| remove_action( 'woocommerce_before_main_content','woocommerce_breadcrumb', 20, 0); | |
| // add defatul shop layaout | |
| add_action('woocommerce_before_main_content', 'my_theme_wrapper_start', 10); |
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
| SET FOREIGN_KEY_CHECKS = 0; | |
| drop table if exists customers; | |
| drop table if exists orders; | |
| drop table if exists order_details; | |
| SET FOREIGN_KEY_CHECKS = 1; |