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
// Menu item spacing | |
array( | |
'id' => 'nice-supplementary-menu-item-padding-lr', | |
'title' => __( 'Menu Item Horizontal Spacing', 'nice' ), | |
'desc' => __( 'Controls left & right spacing of each menu item.', 'nice' ), | |
'type' => 'spinner', | |
'default' => 20, | |
'step' => 1, | |
'max' => 250, | |
'display_value' => 'select', |
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_filter('redux/options/{REDUX_OPTION_NAME}/sections', 'addSections' ); | |
function addSections( $sections ) { | |
$sections[] = array( | |
'title' => __( 'SECTION NAME', 'redux-framework-demo' ), | |
'desc' => __('DESCRIPTION GOES HERE', 'redux-framework-demo'), | |
'icon' => 'el-icon-paper-clip', | |
'fields' => array( | |
) |
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
on Visit Scroll to # link |
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
Get products from 2 or more categories |
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
/* | |
Gist from plugin "Disable Emojis" | |
Yo'll get it from WordPress repository "https://plugins.svn.wordpress.org/disable-emojis/" | |
*/ | |
/** | |
* Disable the emoji's | |
*/ | |
function disable_emojis() { | |
remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); |
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 | |
/** | |
* Get a list of email subscribers. | |
* | |
* @return object The HTTP response that comes as a result of a wp_remote_get(). | |
*/ | |
function css_t_subscribers() { | |
// Do we have this information in our transients already? | |
$transient = get_transient( 'css_t_subscribers' ); |
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 | |
/** | |
* MY CLASS NAME | |
* | |
* @package MY PACKAGE | |
* @since 1.0.0 | |
*/ | |
if( ! class_exists( 'MY_CLASS_NAME' ) ) : |
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
/** | |
* Helper showControlIfhasValues() | |
*/ | |
function showControlIfhasValues( setting, ExpectedValues ) { | |
return function( control ) { | |
// Check the current value in the array of ExpectedValues | |
var isDisplayed = function() { | |
return $.inArray( setting.get(), ExpectedValues ) !== -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
/** | |
* YouTube <iframe> video | |
* | |
* Set 40% volume for YouTube <iframe> video | |
*/ | |
var DebugLog = false, // For debugging | |
YouTubeID = 'YOUTUBE_IFRAME_ID', // Set YouTube <iframe> id | |
YouTubeVolume = 40; // Set volume from 1 to 100 |
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
{ | |
"kind": "webfonts#webfontList", | |
"items": [ | |
{ | |
"kind": "webfonts#webfont", | |
"family": "ABeeZee", | |
"category": "sans-serif", | |
"variants": [ | |
"regular", | |
"italic" |
OlderNewer