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: WooCustom My Account | |
| Plugin URI: http://wpbeaches.com/ | |
| Description: WooCustom - add a custom area in my-account | |
| Author: Neil Gee | |
| Version: 1.0.0 | |
| Author URI: http://wpbeaches.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
| /* | |
| * Set up your Git configuration | |
| */ | |
| git config --global user.email "you@yourdomain.com" | |
| git config --global user.name "Your Name" | |
| git config --global core.editor "nano" |
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 <~~ don't add me in | |
| /* | |
| * Adding Cloudflare Turnstile to WordPress Comment | |
| * https://redpishi.com/wordpress-tutorials/cloudflare-turnstile-captcha-wordpress/ | |
| */ | |
| function cloudflare_key(){ |
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
| add_action( 'get_header', 'themeprefix_cpt_microdata' ); | |
| //Change microdata for events custom post type | |
| function themeprefix_cpt_microdata() { | |
| if ('event' == get_post_type()) {//change to your cpt | |
| //add in the microdata changes | |
| add_filter( 'genesis_attr_entry', 'themeprefix_genesis_attributes_entry', 20 ); |
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
| jQuery(function($) { | |
| function updateOwlNavLabels() { | |
| $('.owl-next .sr-only').text('Next'); | |
| $('.owl-prev .sr-only').text('Previous'); | |
| $('.owl-next').attr('title', 'Next'); | |
| $('.owl-prev').attr('title', 'Previous'); | |
| } | |
| // Run once and then repeatedly to catch dynamic loads |
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
| #!/bin/bash | |
| # Paths to scan | |
| SCAN_PATHS=( | |
| "/home/?/webapps/?" | |
| ) | |
| # Days of modification to scan | |
| SCAN_DAYS=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
| <?php <--// remove | |
| // Cloudflare Keys | |
| function cloudflare_key() { | |
| $sitekey = "XXXXXXXXXX"; | |
| $secretkey = "XXXXXXXXXX"; | |
| return [$sitekey, $secretkey]; | |
| } | |
| // Use Turnstile for comments, load only on single posts |
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 //<~ don't add me in | |
| add_filter( 'wp_nav_menu_items', 'my_account_loginout_link', 10, 2 ); | |
| /** | |
| * Add WooCommerce My Account Login/Logout to Registered Menu | |
| * | |
| * @link https://support.woothemes.com/hc/en-us/articles/203106357-Add-Login-Logout-Links-To-The-Custom-Primary-Menu-Area | |
| */ | |
| function my_account_loginout_link( $items, $args ) { | |
| if (is_user_logged_in() && $args->theme_location == 'primary') { //change your theme registered menu name to suit |
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
| /* Google Review Sider & Grid | |
| --------------------------------------------- */ | |
| /* Google Review Plugin Swap #000000 and #ffb200 for your colors */ | |
| @media(min-width:768px) { | |
| /* Testimonials Equal Height*/ | |
| .wprevpro_t1_outer_div { | |
| display: flex; |
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 //<~ don't add me in | |
| add_filter( 'fl_builder_register_settings_form', 'wb_builder_register_settings_form_short', 10, 2 ); | |
| /** | |
| * Filter the Global Settings Options. | |
| * Media breakpoints and form title have been changed. | |
| */ | |
| function wb_builder_register_settings_form_short( $form, $id ) { | |
| if ( 'global' == $id ) { |
NewerOlder