WordPress

Custom Dashboard

WordPress plugin stub to customize the dashboard for users without administrator access.

Source Code

Custom Homepage

Clone and edit the existing theme index.php template. Open index.php in an editor and Save As… home.php. This file will automatically take over the themes index.php, and it will be displayed as the homepage.


Development Environments

Vagrant

Vagrant configuration designed for development of WordPress plugins, themes, or websites.

http://vccw.cc/

What’s Included


XAMPP, MAMP, IIS


Development Resources

  • WordPress Plugin Developer Handbook
  • Debugging in WordPress
    wp-config.php
    REPLACE
    define('WP_DEBUG', false);
    
    WITH
    // Enable WP_DEBUG mode
    define( 'WP_DEBUG', true );
    
    // Enable Debug logging to the /wp-content/debug.log file
    define( 'WP_DEBUG_LOG', true );
    
    // Disable display of errors and warnings 
    define( 'WP_DEBUG_DISPLAY', false );
    @ini_set( 'display_errors', 0 );
    
    // write log to /wp-content/debug.log
    define('WP_DEBUG_LOG', true);
    
  • Log Your Debug Statements
    // array or object variable
    error_log(print_r($myvariable, true));
    
    // string
    error_log(print_r($mystring));