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
// 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 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 | |
jQuery(document).on('gform_post_render', function(){ | |
jQuery.fancybox.update(); | |
}); |
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 | |
// Display Soliloquy Slider metabox on custom post type | |
add_filter( 'soliloquy_skipped_posttypes', 'icreate_soliloquy_skipped_posttypes' ); | |
function icreate_soliloquy_skipped_posttypes( $post_types ) { | |
unset( $post_types['custom_type_slug'] ); | |
return $post_types; | |
} | |
// Set slider dimensions |
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_filter( 'tiny_mce_before_init', 'icreate__custom_tinymce_formats' ); | |
function icreate__custom_tinymce_formats( $init_array ) { | |
// Define the style_formats array | |
$style_formats = array( | |
array( | |
'title' => '.blockquote-alt', | |
'block' => 'blockquote', | |
'classes' => 'blockquote-alt', | |
'wrapper' => true, |
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 | |
function display_aggregate_rating() { | |
$num_ratings = 0; | |
$agg_score = 0; | |
$args = array( | |
'post_type' => 'testimonials', | |
'posts_per_page' => '-1' | |
); | |
$testimonials = get_posts( $args ); |
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: iCreate Simple Endpoint | |
Description: Simple way to add a landing page endpoint | |
Author: iCreate Advertising | |
Version: 1.0.0 | |
Author URI: https://icreateadvertising.com.au | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) { |
OlderNewer