Skip to content

Instantly share code, notes, and snippets.

View AgeValed's full-sized avatar

Pablo de la Vega AgeValed

View GitHub Profile
@AgeValed
AgeValed / functions.php
Last active August 29, 2016 21:15 — forked from netconstructor/functions.php
Drag & Drop (functions.php code and referenced JS file below)
///////////////////////////////////////////////////////////////////////////////////////////
// CODE TO ADD POST PER PAGE FILTER
///////////////////////////////////////////////////////////////////////////////////////////
add_filter( 'edit_posts_per_page', 'reorder_edit_posts_per_page', 10, 2 );
function reorder_edit_posts_per_page( $per_page, $post_type ) {
// CHECK USER PERMISSIONS
if ( !current_user_can('edit_others_pages') )
return;
@AgeValed
AgeValed / 0_reuse_code.js
Created February 10, 2016 17:20
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console