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
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 | |
*/ |
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: 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 |
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: 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 | |
*/ |
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 | |
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'; | |