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 remove_self_linking_images() { | |
$all_ids = new WP_Query(array( | |
'post_type' => array('post', 'page'), // feel free to add custom post types here if necessary | |
'posts_per_page' => -1, | |
'post_status' => 'any', | |
'fields' => 'ids' | |
)); |
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
form { | |
@media (min-width: @screen-md-min) { | |
.input-group; | |
.gform_body > ul { | |
.list-unstyled; | |
margin: 0; | |
> li:first-child:last-child { | |
.input-group; | |
width: 100%; | |
> label { |
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
"devDependencies": { | |
"bower": ">=1.3.9", | |
"gulp": "^3.8.7", | |
"gulp-autoprefixer": "^0.0.7", | |
"gulp-clean": "^0.3.1", | |
"gulp-concat": "^2.3.4", | |
"gulp-filter": "^0.4.1", | |
"gulp-grunt": "^0.5.2", | |
"gulp-imagemin": "^0.6.0", | |
"gulp-jshint": "^1.8.4", |
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 populate_gravity_forms($field) { | |
if(class_exists('RGFormsModel')) { | |
$forms_array = array(); | |
$forms = RGFormsModel::get_forms(null, 'title'); | |
foreach($forms as $form) { | |
$forms_array[$form->id] = $form->title; |
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
grunt.initConfig({ | |
mysql: grunt.file.readJSON('mysql.json'), | |
timestamp: grunt.template.today('mm-dd-yyyy_HH-MM-ss'), | |
sshexec: { | |
dump_remote_db: { | |
options: { | |
host: '<%= mysql.remote.host %>', | |
username: '<%= mysql.remote.username %>', | |
agent: process.env.SSH_AUTH_SOCK | |
}, |
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
.wp-video, video.wp-video-shortcode, .mejs-container, .mejs-overlay.load { | |
width: 100% !important; | |
height: 100% !important; | |
} | |
.mejs-container { | |
padding-top: 56.25%; | |
} | |
.wp-video, video.wp-video-shortcode { | |
max-width: 100% !important; | |
} |
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 localize_ajax_variables() { | |
wp_localize_script('your_js', 'wp_ajax_vars', array( | |
'admin_url' => admin_url('admin-ajax.php') | |
)); | |
} | |
add_action('wp_enqueue_scripts', 'localize_ajax_variables', 999); |
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
/* | |
* | |
* Assumes: | |
* 1. You have a FCF field called 'sections' | |
* 2. Each FCF block has a text sub field called 'section-title' | |
* | |
*/ | |
<?php |
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 populate_gravity_forms($field) { | |
echo '<h1>acf/load_field filter debug within populate_gravity_forms()</h1>'; | |
if(class_exists('RGFormsModel')) { | |
$forms_array = array(); | |
$forms = RGFormsModel::get_forms(null, 'title'); | |
foreach($forms as $form) { |
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 | |
add_filter('gform_confirmation_anchor', '__return_false'); | |
?> |