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 | |
/** | |
* Simple script to update/reassign posts from old categories to new categories. | |
* Creates any new categories that don't yet exist. | |
* Removes old categories that have now been emptied. | |
* | |
* @author Michael Niles <blindmikey@gmail.com> | |
* @version 1.0.0 | |
*/ |
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 | |
/** | |
* Call any image file (URI or ABSPATH) or image ID | |
* and get it's thumbnail in any size/crop dynamically | |
* | |
* Usage: <?php | |
* echo dynamic_img_src( 'http://yoursite.com/images/image.png', 'width=800&height=600&crop=true' ); | |
* echo dynamic_img_src( 38, array( 'width'=>800, 'height'=>600, 'crop'=>true ) ); | |
* | |
* @author Michael Niles <github@blindmikey.com> |
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 | |
class SugarAPI | |
{ | |
/** | |
* Default Class Settings | |
* @var array | |
*/ | |
protected $s; | |
/** |
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 | |
/** | |
* Simple PHP script for mass redirects | |
* | |
* @author: Michael Niles <github@blindmikey.com> | |
* @version: 1.0.0 | |
*/ | |
/** |