Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Baikare Sandeep baikaresandeep

🎯
Focusing
Block or report user

Report or block baikaresandeep

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@baikaresandeep
baikaresandeep / inxex.html
Created Jul 11, 2019
Check Multiple checkboxes dynamically by ID and classes. You can use this function for multiple times in a single code for different purposes
View inxex.html
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>Check all Checkboxes</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<script src='script.js'></script>
</head>
<body>
@baikaresandeep
baikaresandeep / count-branches-all.sh
Created Mar 25, 2019
Count the number of branches in your Local + Remote repository
View count-branches-all.sh
git branch -a | wc -l
@baikaresandeep
baikaresandeep / count-branches.sh
Created Mar 25, 2019
Count the number of branches in your local repository
View count-branches.sh
git branch | wc -l
@baikaresandeep
baikaresandeep / count-branches.sh
Created Mar 25, 2019
Count the number of branches in your local repository
View count-branches.sh
git branch | wc -l
@baikaresandeep
baikaresandeep / template-product.php
Last active Nov 15, 2018
Custom Woocommerce Product template with pagination
View template-product.php
<?php
/**
* @author Baikare Sandeep
*
* Template Name: Product
*/
get_header(); ?>
@baikaresandeep
baikaresandeep / function.php
Last active Jul 18, 2018
Wordpress add short description on the custom post type page: The filter views_{$this->screen->id} is fired just after the title of post edit screen has been print to screen, so it's a safe place to just echo what you want. So you can simply do:
View function.php
<?php
function post_type_desc( $views ){
$screen = get_current_screen();
$post_type = get_post_type_object($screen->post_type);
if ($post_type->description) {
printf('<h4>%s</h4>', esc_html($post_type->description)); // echo
}
@baikaresandeep
baikaresandeep / list_treestructure_terms.php
Created Aug 29, 2017
List the terms with tree structure
View list_treestructure_terms.php
<?php
/**
* list the taxonomy of custom post type with tree structure
* @param string $taxonomy name of taxonomy
* @param integer $parent parent term_id of term
* @return string generate the list of taxonomy
*/
function custom_taxonomy_walker( $taxonomy, $parent = 0 ){
$terms = get_terms($taxonomy, array('parent' => $parent, 'hide_empty' => false, 'orderby' => 'name'));
//If there are terms, start displaying
You can’t perform that action at this time.