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 | |
$terms = get_terms( 'company_tax',array( | |
'hide_empty' => false, | |
'pad_counts' => true, | |
)); | |
foreach($terms as $term){ | |
wp_update_term_count($term->term_id, 'company_tax', 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 | |
/** | |
* The below function will help to load template file from plugin directory of wordpress | |
* | |
*/ | |
define( 'PLUGIN_DIR_PATH', plugin_dir_path( __FILE__ ) ); | |
/** | |
* pp_get_template_part | |
* |
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: WP Rating Reviews | |
* Plugin URI: http://imdev.xyz/plugins/wprr | |
* Description: Allows your visitors to leave business / product reviews. | |
* Version: 1.0.0 | |
* Author: Kamal Hosen | |
* Author URI: http://imdev.xyz/ | |
* Text Domain: wp-rating-reviews | |
* Domain Path: /languages/ |
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 | |
/** | |
* Bangla Date translate class for WordPress | |
* | |
* Converts English months, dates to equivalent Bangla digits | |
* and month names. | |
* | |
* @author Tareq Hasan <[email protected]> | |
*/ | |
class WP_BanglaDate { |
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 | |
if ( ! function_exists( 'name_fonts_url' ) ) : | |
/** | |
* Register Google fonts for Your theme | |
* | |
* Create your own name_fonts_url() function to override in a child theme. |
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 smooth scrolling to all links | |
$('a[href^="#"]').on('click', function(e) { | |
e.preventDefault(); | |
var target = this.hash, | |
$target = $(target); | |
$('html, body').stop().animate({ | |
'scrollTop': $target.offset().top |
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
.col-xs-offset-right-12 { | |
margin-right: 100%; | |
} | |
.col-xs-offset-right-11 { | |
margin-right: 91.66666667%; | |
} | |
.col-xs-offset-right-10 { | |
margin-right: 83.33333333%; | |
} | |
.col-xs-offset-right-9 { |
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
/* | |
* ---------------------------------------------------------------------------------------- | |
* STICKY JS | |
* ---------------------------------------------------------------------------------------- | |
*/ | |
$(window).on('scroll',function() { | |
var scroll = $(window).scrollTop(); | |
if (scroll < 30) { | |
$(".header-area").removeClass("scroll-header"); | |
}else{ |