Skip to content

Instantly share code, notes, and snippets.

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
View 01-limit.php
<?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 / 00-README.md
Last active May 22, 2020 07:20
Automation Scripts
View 00-README.md

Some scripts for automating plugin creation in WordPress.

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

Some examples.

View 00-Plugin Internationalization.md

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
View 00-README.md

Introduction to WP-CLI at Nelio Software.

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

Nothing relevant.

View 00-README.md

Bulk Edit example in WordPress.

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

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