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 | |
/** | |
* Remove Product Tags from Products Post Type - WooCommerce | |
* @link https://rudrastyh.com/woocommerce/remove-product-tags.html | |
* @author Misha Rudrastyh | |
*/ | |
add_action( 'admin_menu', 'themeprefix_hide_product_tags_admin_menu', 9999 ); | |
function themeprefix_hide_product_tags_admin_menu() { |
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 | |
# Ref wp-cli-valet - https://github.com/aaemnnosttv/wp-cli-valet-command | |
# Set up Terminal styles | |
VP_NONE='\033[00m' | |
VP_RED='\033[01;31m' | |
VP_GREEN='\033[01;32m' | |
VP_YELLOW='\033[01;33m' | |
VP_PURPLE='\033[01;35m' | |
VP_CYAN='\033[01;36m' |
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 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 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 - code below goes into functions.php | |
add_shortcode( 'wpb_accordion_acf', 'wpb_accordion_acf' ); | |
/** | |
* Accordion Repeater Field | |
*/ | |
function wpb_accordion_acf() { | |
ob_start(); | |
// *Repeater |
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 the below code in functions.php | |
add_shortcode( 'wpb_while_tabs_accordion_acf', 'wpb_while_tabs_accordion_acf' ); | |
/** | |
* Bootstrap While Tabs Loop | |
*/ | |
function wpb_while_tabs_accordion_acf() { | |
ob_start(); | |
// *Repeater |
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 | |
$modals = array( 'modal1', 'modal2', 'modal3', 'modal4' );// Set the array | |
$i = 1; // Set the increment variable | |
foreach( $modals as $modal ): | |
?> | |
<!-- Button to Open the Modal --> | |
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal-<?php echo $i; // Displaying the increment ?>"> |
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 | |
// Get the query data. | |
$query = FLBuilderLoop::query( $settings ); | |
// Render the posts. | |
if ( $query->have_posts() ) : | |
do_action( 'fl_builder_posts_module_before_posts', $settings, $query ); |
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( '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 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(document).ready(function($){ | |
var $grid = $('.grid').isotope({ | |
itemSelector: '.grid-item', | |
percentPosition: true, | |
layoutMode: 'fitRows', | |
}); | |
// Layout Isotope after each image loads | |
$grid.imagesLoaded().progress( function() { |