This gist is used in The Day I Tried to Update Nelio External Featured Image.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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'; |
Some scripts for automating plugin creation in WordPress.
Some examples.
Examples of good and bad practices in WordPress plugin i18n.
Introduction to WP-CLI at Nelio Software.
Google Maps JavaScript API Example.
Nothing relevant.
Bulk Edit example in WordPress.
Some examples of the things one can do with Vanilla JavaScript. Comparison of Vanilla JS to jQuery and Underscore.js.
NewerOlder