Skip to content
View ghwoodard's full-sized avatar
Block or Report

Block or report ghwoodard

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned

  1. Create a custom user role in WordPre... Create a custom user role in WordPress and remove admin pages that don't have the user role
    1
    <?php
    2
    /*
    3
    You want to add this code to the functions.php file or, ideally, to a new plugin. Best for when you need to provide admin
    4
    access to a website but don't want admins having access to certain pages that will break or mess up the website.
    5
    */
  2. Require a Featured Image Before You ... Require a Featured Image Before You Can Publish a Post
    1
    <?php
    2
    /*
    3
    A great function that will display a message to the user that a Featured Image is missing and is required in order to publish
    4
    a new post.
    5
    */
  3. hide-admin-notices.php hide-admin-notices.php
    1
    <?php
    2
    
                  
    3
    // Hide Admin Notices
    4
    function hide_update_msg_non_admins(){
    5
        if (current_user_can( 'manage_options' )) { // User Caps
  4. Fix WP Login Error: Cookies are Bloc... Fix WP Login Error: Cookies are Blocked or Not Supported by Your Browser // Source: https://wp-staging.com/how-to-fix-the-error-cookies-are-blocked-or-not-supported-by-your-browser
    1
    <?php
    2
    
                  
    3
    // Option 1: Add following to WP-Config.php before That’s all, stop editing! line
    4
    
                  
    5
    define('COOKIE_DOMAIN', $_SERVER['HTTP_HOST'] );
  5. Disable Comments on WordPress CMS Disable Comments on WordPress CMS
    1
    <?php
    2
    
                  
    3
    // Add to existing function.php file
    4
    
                  
    5
    // Disable support for comments and trackbacks in post types