Skip to content

Instantly share code, notes, and snippets.

@mo3aser
mo3aser / functions.php
Created November 28, 2016 13:42 — forked from contempoinc/functions.php
Admin CSS to remove Slider Revolution & Visual Composer Notices
<?php
/*-----------------------------------------------------------------------------------*/
/* Admin CSS */
/*-----------------------------------------------------------------------------------*/
if(!function_exists('ct_admin_css')) {
function ct_admin_css() {
echo '<style>';
echo 'tr[data-slug="slider-revolution"] + .plugin-update-tr, .vc_license-activation-notice, .rs-update-notice-wrap, tr.plugin-update-tr.active#js_composer-update { display: none !important;}';
INITIALISATION
==============
load wp-config.php
set up default constants
load wp-content/advanced-cache.php if it exists
load wp-content/db.php if it exists
connect to mysql, select db
load object cache (object-cache.php if it exists, or wp-include/cache.php if not)
load wp-content/sunrise.php if it exists (multisite only)