Skip to content

Instantly share code, notes, and snippets.

Ryan Lawrence ryanl4321

Block or report user

Report or block ryanl4321

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
ryanl4321 / wp-config.php
Last active Jul 26, 2017
some good tings to start
View wp-config.php
define( 'DISALLOW_FILE_EDIT', true );
define('WP_AUTO_UPDATE_CORE', 'minor');
define('WP_SITEURL', 'https://'.$_SERVER['SERVER_NAME']);
define('WP_HOME', 'https://'.$_SERVER['SERVER_NAME']);
View functions-settings.php
class new_general_setting {
private $field_name = false;
private $field_label = false;
private $field_type = false;
function __construct($field_name, $field_label=false, $field_type='text'){
$this->field_name = $field_name;
$this->field_label = $field_label ? $field_label : str_replace('_',' ',$field_name);
$this->field_type = $field_type;
ryanl4321 / blogs-menu.php
Last active Dec 23, 2015 — forked from davejamesmiller/blogs-menu.php
WordPress Multisite: List of all blogs
View blogs-menu.php
// This code was used to generate a menu showing all blogs on a WordPress
// Multisite installation.
// The shortcode [bloglist] was used in the homepage of the main blog to link to
// all the other blogs.
// Output a single menu item
function bloglist_entry($id, $title, $link_self){
global $blog_id;
if ($id == $blog_id && !$link_self){ return; }
You can’t perform that action at this time.