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 | |
/* Gravity Forms Word Count Script */ | |
function els_load_scripts() { | |
wp_enqueue_script('gravity-forms-word-count', get_stylesheet_directory_uri() . '/js/jquery.gravity_word_count.js', array('jquery'), '0.1', true); | |
} | |
add_action('wp_enqueue_scripts', 'els_load_scripts'); | |
/*Then in the form, for fields that need the word count, add the class ‘els-word-count[300].' Change [300] as needed for the maximum words that can be added to that particular field.*/ | |
/*Source http://www.gravityhelp.com/forums/topic/maximum-word-count#post-149331*/ |
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 //<~ don't add me in | |
add_filter( 'get_search_form', 'wpb_alter_search_form', 20 ); | |
// Modify Search Form | |
function wpb_alter_search_form( $form ){ | |
return '<form role="search" method="get" id="searchform" action="' . esc_url( home_url( '/' ) ) . '" > | |
<input type="search" name="s" placeholder="SEARCH..." value/> | |
</form>'; | |
} |
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 //<~ don't add me in - add the code below in functions.php | |
add_shortcode( 'wpb_bs_accordion_acf', 'wpb_bs_accordion_acf' ); | |
/** | |
* Bootstrap Accordion Repeater Field | |
*/ | |
function wpb_bs_accordion_acf() { | |
ob_start(); |
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 // <~ don't add me in | |
add_action( 'restrict_manage_posts', 'filter_backend_by_taxonomies' , 99, 2); | |
/* Filter CPT via Custom Taxonomy */ | |
/* https://generatewp.com/filtering-posts-by-taxonomies-in-the-dashboard/ */ | |
function filter_backend_by_taxonomies( $post_type, $which ) { | |
// Apply this to a specific CPT | |
if ( 'light' !== $post_type ) |
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 | |
/* | |
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 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 | |
// Change the footer text in Genesis with a back up if blank | |
add_filter('genesis_footer_creds_text', 'genesischild_footer_text'); | |
function genesischild_footer_text() { | |
if( get_theme_mod( 'footer_text_block') != "" ) { | |
echo get_theme_mod( 'footer_text_block'); | |
} | |
else{ |
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> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Create an FAQ Page with Show and Hide Questions and Answers using jQuery</title> | |
<!-- jQuery --> | |
<script type="text/javascript" src="//code.jquery.com/jquery-3.6.0.min.js"></script> | |
<script> |
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 | |
/** | |
* Plugin Name: Woo Custom Webhook | |
* Plugin URI: https://wpbeaches.com/send-full-product-details-over-woocommerce-webhook-action-hook/ | |
* Description: Custom WooCommerce Webhook Action | |
* Author URI: https://github.com/woocommerce/woocommerce/issues/20336#issuecomment-829510702 | |
* Version: 0.1.0 | |
*/ | |
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($) { | |
/* | |
* new_map | |
* | |
* This function will render a Google Map onto the selected jQuery element | |
* | |
* @type function | |
* @date 8/11/2013 | |
* @since 4.3.0 |