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
add_action('acf/init', 'ini_acf_func'); | |
function ini_acf_func(){ | |
if ( function_exists( 'get_field' ) ) : | |
$ID_Awesome_Header = new ID_Awesome_Header(); | |
$ID_Awesome_Header -> id_add_options_sub_page( 'id-awesome-header-module' ); | |
$ID_Awesome_Header -> add_theme_support( array( 'post', 'page', 'product' ) ); | |
$ID_Awesome_Header -> init(); | |
// move set selector after init to fixed null value of settings id. |
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
"typography": { | |
"dropCap": false, | |
"fluid": true, | |
"fontFamilies": [ | |
{ | |
"fontFamily": "\"Bebas Neue\", impact, sans-serif", | |
"name": "Bebas Neue", | |
"slug": "bebas-neue", | |
"fontFace": [ | |
{ |
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
/** | |
* ----------------------------------------------------------------------------- | |
* | |
* TablePress Filter Hook | |
* | |
* ----------------------------------------------------------------------------- | |
*/ | |
/** | |
* Filter the table after processing the table visibility information. |
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
/* partially complete conditional logic functions, submitted to Gravity Forms for help, as once the new select element is switched to, it cannot be switched away from */ | |
function set_conditional( $form ) { | |
?> | |
<script type="text/javascript"> | |
gform.addFilter( 'gform_conditional_logic_fields', 'set_conditional_field' ); | |
function set_conditional_field( options, form, selectedFieldId ){ | |
options.push({ | |
label: 'User Role', | |
value: 'user-role' |
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 | |
// The following Ajax handler is inside a loaded PHP file, | |
// such as a plugin, or in this sample, the functions.php file. | |
add_action('wp_ajax_my_get_support', 'ajax_my_get_support'); | |
/** | |
* Ajax handler that gernates the form with all | |
* required JS files and CSS rules. | |
*/ |
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
/*------------------------------------*\ | |
#PRIMARY-MENU | |
\*------------------------------------*/ | |
.primary-menu { | |
@include grid; | |
@include sans-serif; | |
font-weight: $bold; | |
height: $nav-bar-height; | |
&__wrapper { |
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
# Get around shallow update restriction | |
if [ -f ${HOME}/clone/.git/shallow ]; then git fetch --unshallow; fi | |
# Add User Data | |
git config --global user.name "wpengine-git-push-user-name" | |
git config --global user.email "my-wpengine-account-email-address" | |
# Add servers | |
git remote add servers $WPENGINE_GIT_PUSH_REMOTE | |
git remote set-url --add --push servers $WPENGINE_GIT_PUSH_REMOTE | |
git remote set-url --add --push servers $WPENGINE_GIT_PUSH_REMOTE_2 | |
git remote set-url --add --push servers $WPENGINE_GIT_PUSH_REMOTE_3 |
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
/* | |
* ----------------------------------------------------------------------------- | |
* | |
* google map acf fixes | |
* | |
* ----------------------------------------------------------------------------- | |
*/ | |
add_filter('script_loader_tag', 'add_async_defer_attribute', 10, 2); | |
function add_async_defer_attribute($tag, $handle) { |
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 | |
/* | |
* Creating a function to create our CPT | |
*/ | |
function cpt_widget_block() { | |
// Set UI labels for Custom Post Type | |
$labels = array( |
NewerOlder