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 | |
$url = get_home_url(); | |
// map redirects in array: [old url (path)] => [new url ($url + path)] | |
$redirect_urls = array( | |
// '' => $url . '', | |
); | |
/** |
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 | |
/* | |
* Remove Dashboard Items | |
*/ | |
if (is_admin()) { | |
if (!(function_exists('pl_remove_dash_items'))) { | |
function pl_remove_dash_items() | |
{ | |
// Check that the built-in WordPress function remove_menu_page() exists in the current installation |
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
curl https://raw.githubusercontent.com/qrpike/Web-Font-Load/master/install.sh | sh |
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 | |
/* | |
* Debugging @TODO: remove or comment out for production | |
*/ | |
function printr($data) { | |
echo "<pre>"; | |
print_r($data); | |
echo "</pre>"; | |
} |
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 | |
/* modified from https://code.tutsplus.com/tutorials/how-to-activate-plugins-themes-upon-wordpress-installation--cms-23551 */ | |
// set the options to change: https://codex.wordpress.org/Option_Reference | |
$option = array( | |
'blogdescription' => '', | |
'comments_notify' => 0, | |
'default_comment_status' => 'closed', | |
'default_ping_status' => 'closed', |
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
// prevent auto-focus on select2 search input | |
$(document).ready(function(){ | |
$('select').on('select2:open', function() { | |
$('.select2-search input').prop('focus', 0); | |
}); | |
}); |
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
// #staff_name search input placeholder | |
$('select').on('select2:open', function() { | |
$('.select2-search--dropdown .select2-search__field').attr('placeholder', 'Type to search...'); | |
}); |
OlderNewer