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
//default add title placeholde text update | |
function theme_posts_editor_title_placeholder($title){ | |
$post_type = get_post_type(); | |
if($post_type == 'team'){ | |
$title = 'Add Team Member Name'; | |
} | |
if($post_type == 'pricing'){ | |
$title = 'Add New Pricing'; |
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
//change woocommerce columns number | |
function theme_name_woocommerce_loop_shop_columns($nc){ | |
return 3; //number of columns here | |
} | |
add_filter("loop_shop_columns", "theme_name_woocommerce_loop_shop_columns"); | |
//exclude/hide/remove woocommerce products from shop page |
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 wow_post_list_addon(){ | |
vc_map( array( | |
"name" => __( "Post list", "wowshop" ), | |
"base" => "post_list", | |
"class" => "", | |
"category" => __( "wowshop", "wowshop"), | |
"params" => array( | |
array( | |
"type" => "dropdown", | |
"heading" => __( "Post type", "wowshop" ), |
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
// WooCommerce shop page show per page drop down | |
function theme_name_woocommerce_catalog_page_ordering() { | |
?> | |
<div class="lbl-cnt"> | |
<?php echo '<span class="lbl">Show</span>' ?> | |
<form action="" method="POST" name="results" class="fld inline"> | |
<select name="woocommerce-sort-by-columns" id="woocommerce-sort-by-columns" class="sortby" onchange="this.form.submit()"> | |
<?php |
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
// WooCommerce Theme Support | |
add_action( 'after_setup_theme', 'woocommerce_support' ); | |
function woocommerce_support() { | |
add_theme_support( 'woocommerce' ); | |
} |
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
// Change number or products per row to 3 | |
add_filter('loop_shop_columns', 'loop_columns'); | |
if (!function_exists('loop_columns')) { | |
function loop_columns() { | |
return 3; // 3 products per row | |
} | |
} |
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 | |
function post_shortcode($atts, $content= null ){ | |
extract(shortcode_atts(array( | |
'post_type' => "post", | |
'post_per_page' => 10 | |
), $atts)); | |
$get_post = new WP_Query(array( | |
'post_type' => 'page', | |
'post_per_page' => 5 |
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: Industry Toolkit | |
Plugin URI: http://www.bandevs.com | |
Author: Rubel Hasan | |
Author URI: http://www.facebook.com/rubel.hasan.3572 | |
Description: This plugin use for only this theme | |
Version: 1.0 | |
Tag: Industry, Basic, Shortcode generator |
NewerOlder