Skip to content

Instantly share code, notes, and snippets.

View davilera's full-sized avatar
👋

David Aguilera davilera

👋
  • http://neliosoftware.com
  • Barcelona
View GitHub Profile
@davilera
davilera / 01-limit.php
Created August 21, 2017 09:15
WordPress Image Size 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
davilera / Updating NelioEFI.md
Last active June 8, 2020 15:42
Featured Images in WordPress
@davilera
davilera / 00-README.md
Last active May 22, 2020 07:20
Automation Scripts

Some scripts for automating plugin creation in WordPress.

@davilera
davilera / 00-readme.md
Last active July 2, 2019 06:29
PHP Arrays

Some examples.

Examples of good and bad practices in WordPress plugin i18n.

@davilera
davilera / 00-README.md
Last active January 4, 2019 15:42
WP-CLI Introduction

Introduction to WP-CLI at Nelio Software.

Google Maps JavaScript API Example.

@davilera
davilera / 00-README.md
Last active March 9, 2018 15:09
WordPress Loop

Nothing relevant.

Bulk Edit example in WordPress.

@davilera
davilera / 00-readme.md
Last active November 14, 2017 12:43
Vanilla JavaScript VS libraries

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