This file contains 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_action('wysija_replaceusertags', add_gmailactions_subscriptionmail, 13, 2); | |
function add_gmailactions_subscriptionmail($email,$receiver){ | |
if(strpos($email->subject, ‘{{subject of email without quotes}}')) { | |
preg_match("/(?:<a href=\")(.*?)\"/", $email->body, $matches); | |
$gmailActionMicroData = ' |
This file contains 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 | |
function remove_yoastdebugmarker(){ | |
if(defined( 'WPSEO_VERSION' )) { | |
$wpseo_front = null; | |
if ( isset( $GLOBALS['wpseo_front'] ) ) | |
$wpseo_front = $GLOBALS['wpseo_front']; | |
elseif ( class_exists( 'WPSEO_Frontend' ) && method_exists( 'WPSEO_Frontend', 'get_instance' ) ) | |
$wpseo_front = WPSEO_Frontend::get_instance(); | |
remove_action( 'wpseo_head', array($wpseo_front, 'debug_marker') , 2 ); | |
} |
This file contains 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
import boto3 | |
import boto3.dynamodb.types | |
import json | |
# Load the service resources in the desired region. | |
session = boto3.Session(profile_name='default') | |
dynamodb = session.resource('dynamodb', region_name="ap-south-1") | |
kinesis = session.client('kinesis', region_name="ap-south-1") | |
# Set names for ddb table and ks stream |