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 async src="https://cse.google.com/cse.js?cx=7653a89649b0b43df"> | |
| </script> | |
| <div class="gcse-search"></div> |
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 | |
| /** | |
| * @wordpress-plugin | |
| * Plugin Name: CUSTOM PLUGIN NAME | |
| * Plugin URI: https://YOURDOMAIN.com | |
| * Description: CUSTOM PLUGIN DESCRIPTION | |
| * Version: 1.0.0 | |
| * Author: YOUR NAME | |
| * Author URI: https://YOURDOMAIN.com | |
| * License: GPL-2.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 | |
| function generate_price_metadata( $product_id ) { | |
| /** | |
| * Get the product based on ID | |
| */ | |
| $product = wc_get_product( $product_id ); | |
| /** | |
| * This should be set during import to 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 | |
| function prefix_print_error( $item, $action = 'shutdown' ) { | |
| add_action( $action, function() use( $item ) { | |
| printf( '<script>console.log(%s);</script>', json_encode( $item, JSON_PARTIAL_OUTPUT_ON_ERROR, JSON_PRETTY_PRINT ) ); | |
| }, 9999 ); | |
| } |
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 | |
| /** | |
| * Plugin Name: Elementor Mods | |
| * Plugin URI: https://gist.github.com/bob-moore/986bafade1aa0b04bb30e0a2f08fb105 | |
| * Description: Mod some elementor stuff | |
| * Version: 0.1.0 | |
| * Author: Bob Moore | |
| * Author URI: https://github.com/bob-moore | |
| * License: GPL-2.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 | |
| /** | |
| * Plugin Name: Site Specific Plugin File | |
| * Plugin URI: https://www.wpcodelabs.com | |
| * Description: Site Specific Plugin for [project_name] | |
| * Version: 1.0.0 | |
| * Author: WP Code Labs | |
| * Author URI: http://www.wpcodelabs.com | |
| * License: GPL-2.0+ | |
| * License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
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 display_acf_page_sections() { | |
| // Construct ID | |
| $id = !empty( get_sub_field('section_id') ) ? sprintf( ' id="%s"', esc_attr( get_sub_field('section_id') ) ) : ''; | |
| // Construct class | |
| $class = !empty( get_sub_field('section_class') ) ? sprintf( ' class="my_custom_class %s"', esc_attr( get_sub_field('section_class') ) ) : ' class="my_custom_class'; | |
| // Construct style | |
| $bg_image = get_sub_field('section_background_image'); | |
| $bg_color = get_sub_field('section_background_image'); | |
| if( empty( $bg_image ) && empty( $bg_color ) ) { |
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 to remove automatic placement of sharing buttons from jetpack | |
| */ | |
| if( !function_exists( 'jptweak_remove_share' ) ) { | |
| function jptweak_remove_share() { | |
| remove_filter( 'the_content', 'sharing_display', 19 ); | |
| remove_filter( 'the_excerpt', 'sharing_display', 19 ); | |
| if ( class_exists( 'Jetpack_Likes' ) ) { |
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
| define( 'WP_DEBUG', true ); | |
| define( 'WP_DEBUG_DISPLAY', true ); | |
| define( 'WP_DEBUG_LOG', true ); | |
| define( 'SCRIPT_DEBUG', true ); | |
| define( 'JETPACK_DEV_DEBUG', true ); |
NewerOlder