Skip to content

Instantly share code, notes, and snippets.

@patric-boehner
patric-boehner / hide-editor.php
Created February 24, 2017 03:11 — forked from ramseyp/hide-editor.php
Hide the content editor for certain pages in WordPress
<?php
/**
* Hide editor on specific pages.
*
*/
add_action( 'admin_init', 'hide_editor' );
function hide_editor() {
// Get the Post ID.
@patric-boehner
patric-boehner / code-functions.php
Last active July 16, 2019 17:27 — forked from jdelia/code-functions.php
SVG Icons and Graphic Elements
// Add the SVG icons functions.
include_once( get_stylesheet_directory() . '/lib/icon-functions.php' );