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
{ | |
"r34nono_admin_bar_logout_link": "1", | |
"r34nono_auto_core_update_send_email_only_on_error": "1", | |
"r34nono_disable_site_search": "1", | |
"r34nono_disallow_full_site_editing": "0", | |
"r34nono_hide_admin_bar_for_logged_in_non_editors": "1", | |
"r34nono_limit_admin_elements_for_logged_in_non_editors": "1", | |
"r34nono_login_replace_wp_logo_link": "0", | |
"r34nono_prevent_block_directory_access": "1", | |
"r34nono_redirect_admin_to_homepage_for_logged_in_non_editors": "1", |
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 | |
/** | |
* Easily set the preferred options for No Nonsense | |
* | |
* The interface of No Nonsense is nice and intuitive, but it's tedious to set the options for | |
* each new website again and again. Fortunately we can easily set these manually through | |
* code since the plugin stores its settings in the database. | |
* | |
* This script adds a No Nonsense utility to store all preferred settings at once | |
* |
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 | |
add_action( 'init', 'ejo_allow_user_only' ); | |
/** | |
* Restrict Admin section to specified username | |
* | |
* Prevent people from using the admin-section. | |
* Only allow user with username `REPLACE_THIS` | |
* | |
* WordPress 4.7.0+ |