Skip to content

Instantly share code, notes, and snippets.

David Aguilera davilera

  • Barcelona
Block or report user

Report or block davilera

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
davilera /
Last active Jan 4, 2019
WP-CLI Introduction

Introduction to WP-CLI at Nelio Software.

davilera /
Last active Mar 9, 2018
WordPress Loop

Nothing relevant.


Bulk Edit example in WordPress.

davilera /
Last active Jan 29, 2019
Automation Scripts

Some scripts for automating plugin creation in WordPress.

davilera /
Last active Nov 14, 2017
Vanilla JavaScript VS libraries

Some examples of the things one can do with Vanilla JavaScript. Comparison of Vanilla JS to jQuery and Underscore.js.

davilera / 01-limit.php
Created Aug 21, 2017
WordPress Image Size Limit
View 01-limit.php
function nelio_max_image_size( $file ) {
$size = $file['size'];
$size = $size / 1024;
$type = $file['type'];
$is_image = strpos( $type, 'image' ) !== false;
$limit = 250;
$limit_output = '250kb';
davilera /
Last active Jul 7, 2017
WP Customizations Plugin

Example of a tiny plugin for adding WordPress customizations.

davilera /
Last active Oct 31, 2016
A glance at the future

Some snippets.

View 00-Plugin

Examples of good and bad practices in WordPress plugin i18n.

You can’t perform that action at this time.