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 twitchpress_SHORTCODE_NAME_shortcode( $atts ) { | |
$html_output = ''; | |
$atts = shortcode_atts( array( | |
'PARAM' => VALUE, | |
), $atts, 'twitchpress_SHORTCODE_NAME' ); | |
$transient_code = $atts['PARAM']; | |
if( $cache = get_transient( 'twitchpress_SHORTCODE_NAME' . $transient_code ) ) { |
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 | |
/** | |
* WordPress custom login form notices class. | |
* | |
* Originally designed for TwitchPress systems by Ryan Bayne. | |
* | |
* @author Ryan Bayne | |
* @category User Interface | |
* @package TwitchPress Login Extension | |
* @since 1.0.0 |
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
/** | |
* Create a nonced URL for returning to the current page. | |
* | |
* @param mixed $new_parameters_array | |
* | |
* @version 1.0 | |
*/ | |
function url_rebuilder_nonced( $new_parameters_array, $action, $specified_url = null ) { | |
return esc_url( | |
wp_nonce_url( |
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 | |
/** | |
* CLASS DESCRIPTION | |
* | |
* @author Ryan Bayne | |
* @category Admin | |
* @package Multitool/Admin | |
* @version 1.0 | |
*/ |
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
array( | |
'title' => __( 'SECTIONTITLE', 'multitool' ), | |
'type' => 'title', | |
'desc' => 'SECTIONDESCRIPTION', | |
'id' => 'SECTIONID', | |
), | |
array( | |
'title' => __( 'GROUPTITLE', 'multitool' ), | |
'desc' => __( 'INPUTDESCRIPTION.', 'multitool' ), |
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 | |
/** | |
* PROJECTNAME - FILE NAME | |
* | |
* FILE PURPOSE EXPLAINED | |
* | |
* @author FIRSTNAME SECONDNAME | |
* @category SYSTEMCATEGORY | |
* @package PROJECT/SYSTEMCATEGORY | |
* @since 1.0.0 |