This gist is used in The Day I Tried to Update Nelio External Featured Image.
View 01-limit.php
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'; |
View 00-README.md
Some scripts for automating plugin creation in WordPress.
View 00-readme.md
Some examples.
View 00-Plugin Internationalization.md
Examples of good and bad practices in WordPress plugin i18n.
View 00-README.md
Introduction to WP-CLI at Nelio Software.
View 00-Google Maps JS API Example.md
Google Maps JavaScript API Example.
View 00-README.md
Nothing relevant.
View 00-README.md
Bulk Edit example in WordPress.
View 00-readme.md
Some examples of the things one can do with Vanilla JavaScript. Comparison of Vanilla JS to jQuery and Underscore.js.
NewerOlder