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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript"> | |
(function() { | |
function handlePageLoad() { | |
var endpointMatcher = new RegExp("[\\?\\&]endpoint=([^&#]*)"); | |
document.getElementById('prechatForm').setAttribute('action', | |
decodeURIComponent(endpointMatcher.exec(document.location.search)[1])); | |
} |
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
<!-- Registering a Widget Area - in funuction.php --> | |
/** | |
* Register Widget Area. | |
* | |
*/ | |
function jenesis_widgets_init() { | |
register_sidebar( array( | |
'name' => 'Header Sidebar', |
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 | |
/* | |
Adding First and Last Name to Checkout Form | |
*/ | |
//add the fields to the form | |
function my_pmpro_checkout_after_password() | |
{ | |
if(!empty($_REQUEST['firstname'])) | |
$firstname = $_REQUEST['firstname']; |
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 | |
/* | |
Plugin Name: PMPro Address For Free Levels | |
Plugin URI: http://www.paidmembershipspro.com/wp/pmpro-address-for-free-levels/ | |
Description: Show address fields for free levels also with Paid Memberships Pro | |
Version: .2 | |
Author: Stranger Studios | |
Author URI: http://www.strangerstudios.com | |
*/ |
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
/* Search Everything*/ | |
function SearchFilter($query) { | |
$post_type = $_GET['post_type']; | |
if (!$post_type) { | |
$post_type = 'any'; | |
} | |
if ($query->is_search) { | |
$query->set('post_type', $post_type); | |
}; | |
return $query; |
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
function custom_excerpt_length( $length ) { | |
return 20; | |
} | |
add_filter( 'excerpt_length', 'custom_excerpt_length', 999 ); |
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
/************************************************************************* | |
The following function takes two parameters: | |
$string – The string that needs be limited for example get_the_excerpt(). | |
$max_words – The maximum amount of words you would like to show. | |
***************************************************************************/ | |
/* Limit Your Website Excerpt */ | |
function word_limit($string, $max_words){ |
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
remove_action('wp_head', 'wp_generator'); |
OlderNewer