This file contains hidden or 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 | |
/** | |
* Rename file name while doing upload. | |
* | |
* @param string $filename The name of the file being uploaded | |
* | |
* @return string The sanitized string | |
*/ | |
function my_custom_file_name( $filename ) { | |
$info = pathinfo( $filename ); |
This file contains hidden or 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
(function ($) { | |
let stylesheet = '', | |
html = ''; | |
function get_colors(parent) { | |
let colors = {}; | |
colors.lighter = String($(".color-shade:nth-child(5)", parent).data("color")); |
This file contains hidden or 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 | |
/** | |
* @author Filipe Seabra | |
* @link https://wp-cli.org/ | |
* @version 1.0.0 | |
* | |
* Put this file in the root directory of your WordPress installation. | |
* | |
* You make better usage of this file by using WP CLI (link above). Command line example: | |
* `wp eval-file wp-sweep-uploads.php`. |
This file contains hidden or 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 | |
/** | |
* Hooked into `intermediate_image_sizes` filter hook. | |
* | |
* @param array $image_sizes | |
* | |
* @return array | |
*/ | |
function ss_unset_intermediate_image_sizes( $image_sizes ) { | |
$bad_sizes = array( |
OlderNewer