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_filter('gform_pre_render', 'cr_add_locations_to_select_hr'); | |
add_filter('gform_pre_validation', 'cr_add_locations_to_select_hr'); | |
add_filter('gform_pre_submission_filter', 'cr_add_locations_to_select_hr'); | |
add_filter('gform_admin_pre_render', 'cr_add_locations_to_select_hr'); | |
function cr_add_locations_to_select_hr($form) | |
{ | |
foreach ($form['fields'] as &$field) { | |
if (strpos($field->cssClass, 'edit-post-populate-locations-hr') === false) { | |
continue; |
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
#!/bin/sh | |
umask 022 | |
GIT_WORK_TREE=~/laravel git checkout -f | |
cd ~/laravel | |
scl enable ea-php72 'php artisan config:cache' |
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
# Block wp-config access | |
<files wp-config.php> | |
order allow,deny | |
deny from all | |
</files> | |
# Block the include-only files. | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / |
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_action('init', function () { | |
$username = ''; | |
$password = ''; | |
$email = ''; | |
// Reset pass if exist | |
// $id = get_user_by('email', $email)->ID; | |
// wp_set_password('', $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
<?php | |
$paged = get_query_var('paged', 1); | |
$cat = get_query_var('cat', ''); | |
$args = [ | |
'post_type' => 'post', | |
'post_status' => 'publish', | |
'paged' => $paged, | |
'cat' => $cat, |