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 | |
/** | |
* @Author Anonymous | |
* @link http://www.redrokk.com | |
* @Package Wordpress | |
* @SubPackage RedRokk Library | |
* @copyright Copyright (C) 2011+ Redrokk Interactive Media | |
* | |
* @version 0.1 | |
*/ |
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
if ( ! empty( $_POST['action'] ) && in_array( $_POST['action'], $core_actions_post ) ) { | |
die($_POST['action']); | |
add_action( 'wp_ajax_' . $_POST['action'], 'wp_ajax_' . str_replace( '-', '_', $_POST['action'] ), 1 ); | |
} |
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
<VirtualHost *:80> | |
DocumentRoot "/Users/austinpassy/Documents/Websites/thefrosty.net/html" | |
ServerName thefrosty.dev | |
ServerAlias thefrosty.dev *.thefrosty.dev | |
<Directory "/Users/austinpassy/Documents/Websites/thefrosty.net/html"> | |
Options Indexes FollowSymLinks ExecCGI Includes | |
AllowOverride All | |
Order allow,deny | |
Allow from all | |
</Directory> |
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
function ap_show_template() { | |
// bail early | |
if ( is_admin() || !is_user_logged_in() ) | |
return; | |
if ( !is_admin_bar_showing() || !current_user_can( 'edit_files' ) ) | |
return; | |
global $template, $wp_admin_bar; |
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 | |
function ap_get_edd_logs( $args = array() ) { | |
global $edd_logs; | |
// Prevent the queries from getting cached. Without this there are occasional memory issues for some installs | |
wp_suspend_cache_addition( true ); | |
$logs_data = array(); | |
$download = null; |
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 | |
if ( !defined( 'ABSPATH' ) ) | |
exit; | |
function extendd_add_key_column() { | |
echo '<th class="edd_license_key_upgrade">' . __( 'Upgrade License', 'extendd' ) . '</th>'; | |
} | |
add_action( 'edd_purchase_history_header_after', 'extendd_add_key_column' ); |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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: Eventbrite Attendees Shortcode - Filters | |
* Plugin URI: https://gist.github.com/thefrosty/4cc92703b5d2bc016901 | |
* Description: Example filters for the <a href="http://wordpress.org/plugins/eventbrite-attendees-shortcode/">Eventbrite Attendees Shortcode</a>. Made for Phillip D. @ laeventco.com | |
* Author: Austin Passy | |
* Author URI: http://austin.passy.co | |
* Version: 2014.10.28 | |
* License: GPL |
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
/** | |
* Function Name: front_end_login_fail. | |
* Description: This redirects the failed login to the custom login page | |
* instead of default login page with a modified url | |
*/ | |
add_action( 'wp_login_failed', 'front_end_login_fail' ); | |
function front_end_login_fail( $username ) { | |
$setting = class_exists( 'custom_login_pro_admin' ) ? get_option( CUSTOMLOGINPRO . '_settings' ) : get_option( CUSTOMLOGIN_PAGE_TEMPLATE()->id ); | |
// Getting URL of the login page |
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
$override_default_dir = apply_filters('override_default_fes_dir', false ); | |
if ( function_exists( 'edd_set_upload_dir' ) && !$override_default_dir ) { | |
add_filter( 'upload_dir', 'edd_set_upload_dir' ); | |
} | |
else if ( $override_default_dir ){ | |
add_filter( 'upload_dir', 'fes_set_custom_upload_dir' ); | |
} |