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
/*Add option to post review for edd purchased items - TH */ | |
add_action( 'edd_purchase_history_header_after', '__edd_post_review_th', 12 ); | |
function __edd_post_review_th() { | |
echo '<th class="edd-post-review-th">'. __('Reviews', 'edd') .'</th>'; | |
} // This part is working fine | |
/*Add option to post review for edd purchased items - TD */ | |
add_action( 'edd_purchase_history_row_end', '__edd_post_review_td', 12, 2 ); | |
function __edd_post_review_td( $payment_id, $purchase_data ) { | |
// As I'm getting payment id and not post id so I have no idea how to fetch |
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
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; | |
} | |
} |
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( '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 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 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 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 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 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 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> |
OlderNewer