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 | |
//* Changing Price Label in Gravity Forms - Supports the latest version too | |
//* in gform_product_price_6 the 6 denoted to the FORM ID | |
add_filter( 'gform_product_price_6', function( $sublabel, $form_id ) { | |
return 'Donation Amount'; | |
}, 10, 2); |
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
<IfModule mod_headers.c> | |
Header always set Strict-Transport-Security "max-age=31536000;includeSubDomains;preload" | |
</IfModule> |
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
@media only screen and (max-width: 768px) { | |
table.responsive { | |
margin-bottom: 0; | |
overflow: hidden; | |
overflow-x: scroll; | |
display: block; | |
white-space: nowrap; | |
} | |
} |
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
<!-- No need to add the part BELOW on WordPress Site --> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Responsive Table</title> | |
</head> | |
<body> | |
<!-- No need to add the part ABOVE on WordPress Site --> |
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
################# Normal Google AdSense Code ################# | |
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> | |
<ins class="adsbygoogle center top-ad" | |
style="display:block" | |
data-ad-client="ca-pub-1234667890" | |
data-ad-slot="1234567890"></ins> | |
<script> | |
(adsbygoogle = window.adsbygoogle || []).push({}); | |
</script> |
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
Request | |
PUT https://www.googleapis.com/admin/directory/v1/customers/my_customer?fields=customerDomain&key={YOUR_API_KEY} | |
{ | |
"customerDomain": "extraconfort.com" | |
} | |
Response |
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
<!-- googleoff: all -->CODE<!-- googleon: all --> |
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_action( 'pre_comment_on_post', function ( $comment_post_ID ) { | |
$go_back = sprintf( __( '<br><a href="javascript:history.go(-1)">Back to "%s" Article</a>' ), get_the_title( $comment_post_ID ) ); | |
// Part-copied from "wp-comments-post.php", with $go_back tagged onto error strings. | |
$comment_author = ( isset($_POST['author']) ) ? trim(strip_tags($_POST['author'])) : null; | |
$comment_author_email = ( isset($_POST['email']) ) ? trim($_POST['email']) : null; | |
$comment_content = ( isset($_POST['comment']) ) ? trim($_POST['comment']) : null; | |
$user = wp_get_current_user(); | |
if ( get_option('require_name_email') && !$user->exists() ) { | |
if ( 6 > strlen( $comment_author_email ) || '' == $comment_author ) { |
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
jQuery(function ($) { | |
/*Email validation function*/ | |
function isEmail(email) { | |
var regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/; | |
if( regex.test(email) ){ | |
return true; | |
} else { | |
return false; | |
} | |
} |