Skip to content

Instantly share code, notes, and snippets.

Enrique nr1q

Block or report user

Report or block nr1q

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
@nr1q
nr1q / qtranslate_cleanup.sql
Created Aug 8, 2017 — forked from frnhr/qtranslate_cleanup.sql
clean database after qTranslate uninstall
View qtranslate_cleanup.sql
# QTRANSLATE CLEANUP QUERIES
# create temp column to separate post content on <!--more--> tag to simplify queries
ALTER TABLE `wp_posts` ADD `tmp_excerpt` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;
# split content
## fill `tmp_exceprt` column
UPDATE wp_posts SET tmp_excerpt =
@nr1q
nr1q / hide-editor.php
Created Jul 11, 2017 — forked from ramseyp/hide-editor.php
Hide the content editor for certain pages in WordPress
View hide-editor.php
<?php
/**
* Hide editor on specific pages.
*
*/
add_action( 'admin_init', 'hide_editor' );
function hide_editor() {
// Get the Post ID.
You can’t perform that action at this time.