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 | |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly | |
/** | |
* block-role-admin-access.php | |
*/ | |
function cf_block_role_admin_access() { |
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 | |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly | |
/** | |
* dequeue-assets.php | |
* Resource: http://orbitingweb.com/blog/preventing-plugins-from-loading-js-css-on-all-pages/ | |
*/ | |
//* Finding handles for plugins |
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 | |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly | |
/** | |
* custom-genesis-sitemap.php | |
*/ | |
add_filter( 'genesis_sitemap_output', 'vmf_sitemap' ); | |
function vmf_sitemap() { |
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 | |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly | |
/** | |
* Redirect categories to pages | |
*/ | |
function cf_redirect_categories() { | |
if ( is_category( 'appliances' ) ) { |
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 | |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly | |
/** | |
* display-chosen-categories.php | |
*/ | |
//* Display only chosen categories on blog page | |
function cf_display_chosen_categories( $query ) { |
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 | |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly | |
/** | |
* exclude-blog-categories.php | |
*/ | |
function cf_exclude_chosen_categories( $query ) { |
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 | |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly | |
/** | |
* password-reset-link-duration.php | |
*/ | |
add_filter( 'password_reset_expiration', 'cf_password_reset_link_expiration', 99, 1 ); | |
function cf_password_reset_link_expiration($seconds){ |
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
/** BROWSER SCROLLBAR **/ | |
/* Scrollbar Styling */ | |
::-webkit-scrollbar { | |
width: 11px; | |
} | |
/* The new scrollbar will have a flat appearance with the set background color */ | |
::-webkit-scrollbar-track { | |
background-color: #FFD600; |
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 | |
/* Copy the Content Below this line - DO NOT INCLUDE THE <?php ABOVE */ | |
// Add snippet to functions.php file | |
function cf_new_admin_account() { | |
$user = 'admin'; | |
$pass = 'password'; |
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
#!/bin/bash | |
# WARNING: This script must be run manually to create a new SFTP user. Remember to change the new user's password. | |
# NOTICE: Make sure first instance of PasswordAuthentication is set to "no" $ sudo nano /etc/ssh/sshd_config | |
# REQUIREMENT: Make sure bindfs is installed $ sudo apt-get -y install bindfs | |
#### | |
## Gist: https://gist.github.com/NichlasB/9b9c79ff8e31f48ad19f652b71baf8f6 | |
## Resource: https://easyengine.io/docs/chroot-sftp-easyengine/ | |
## Resource: https://www.howtoforge.com/restricting-users-to-sftp-plus-setting-up-chrooted-ssh-sftp-debian-squeeze |
NewerOlder