Skip to content

Instantly share code, notes, and snippets.

add_filter('woocommerce_form_field_args','wc_form_field_args',10,3);
function wc_form_field_args( $args, $key, $value = null ) {
/*********************************************************************************************/
/** This is not meant to be here, but it serves as a reference
/** of what is possible to be changed. /**
$defaults = array(
@Mdimran41
Mdimran41 / Register Custom Post Type
Created June 8, 2017 04:44
How To Register WordPress Custom Post Type | how to get data from a custom post type using new wp_query and php loop
//include this code on functions. php for register a custom post type
function imran_slider_custom_post(){
// register_custom_post_type
register_post_type('imran_post_type_name', array(
'labels' => array(
'name' => __( 'Sliders', 'textdomain' ),
'singular_name' => __( 'Slider', 'textdomain' ),
'add_new' => _x( 'Add New Slider', 'textdomain' ),
'add_new_item' => __( 'Add New Slider', 'textdomain' ),
$('#nav li a').click(function(){
$('.collapse').removeClass('in');
});
@media only screen and (min-width: 992px) and (max-width: 1200px) {
}
@media only screen and (min-width: 768px) and (max-width: 991px) {}
}
01. Autoprefixer
02. Beautify ***
03. Brackets CSS Class Code hint ***
04. Documents Toolbar ***
05. Dramatic Error Highliting ***
06. Emmet ***
07. Errors Explorer
08. Indent Guides ***
09. Lorem picsum ***
10. More CSS Code Hints ***
.top {
box-shadow: 0 -5px 5px -5px #333;
}
.right {
box-shadow: 5px 0 5px -5px #333;
}
.bottom {
box-shadow: 0 5px 5px -5px #333;
}
<script>
var myCenter=new google.maps.LatLng(51.508742,-0.120850);
function initialize()
{
var mapProp = {
center:myCenter,
scrollwheel: false,
zoom:5,
zoomControl:false,
<!-- html code -->
<div class="sticky_anchor"></div> <!-- essential blank div -->
<div class="stick">
<!-- your content here -->
</div>
------------------------------------------
smoothScroll.init({
offset: 80
});
var windowWidth = $(window).width();
if(windowWidth < 768){
smoothScroll.init({