Skip to content

Instantly share code, notes, and snippets.

Milan Savaliya MilanSavaliya

Block or report user

Report or block MilanSavaliya

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
@MilanSavaliya
MilanSavaliya / Main.java
Created Feb 1, 2018
Sample Program to Show how to calculate Hash value using MD5 and SHA1 in Java
View Main.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
*/
View Disable_WordPress_local_connection_SSL_verifying.php
<?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
View custom-protect-content-shortcode-for-membership.php
<?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
*/
@MilanSavaliya
MilanSavaliya / custom_taxonomy_product_content.php
Created Nov 25, 2015
Append custom taxonomy to the product description with Marketpress
View custom_taxonomy_product_content.php
<?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';
You can’t perform that action at this time.