Skip to content

Instantly share code, notes, and snippets.

View MilanSavaliya's full-sized avatar
🙂
Living

Milan MilanSavaliya

🙂
Living
View GitHub Profile
@MilanSavaliya
MilanSavaliya / custom_taxonomy_product_content.php
Created November 25, 2015 03:53
Append custom taxonomy to the product description with Marketpress
<?php
add_filter( 'the_content', 'append_custom_taxonomy_to_product_content', '', 1);
function append_custom_taxonomy_to_product_content( $content ){
if( get_post_type() == 'product' ){
$taxonomySlug = 'brands';
<?php
/*
Plugin Name: Custom Protect Content Shortcode for Membership 2 Pro
Plugin URI: https://gist.github.com/MilanSavaliya/d90904ff35e04c00031fc796b47a71ad
Description: This plugin provides custom shortcode for displaying protection message to member who belongs to multiple membership( In respective to AND Condition )
Version: 1.0
Author: Milan Savaliya
License: GPLv2 or later
Text Domain: membership2
*/
<?php
/**
* Plugin Name: Disable WordPress local connection SSL verifying
* Plugin URI: https://gist.github.com/MilanSavaliya/892d806be8212a75e1517f1d04538258
* Description: Disables the verifying of WordPress local SSL connections.
* Author: Milan Savaliya
* Version: 1.0
* Network: true
* License: GPLv3
* License URI: http://www.gnu.org/licenses/gpl-3.0
@MilanSavaliya
MilanSavaliya / Main.java
Created February 1, 2018 07:52
Sample Program to Show how to calculate Hash value using MD5 and SHA1 in Java
package com.causecode.sample;
import javax.xml.bind.annotation.adapters.HexBinaryAdapter;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.Scanner;
/**
* Demo Program to show how to calculate the hash code for the given input
*/