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
find . -type f -exec chmod 644 -- {} + | |
find . -type d -exec chmod 755 -- {} + |
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 | |
// Only run the code if we are in the admin | |
if ( is_admin() ) : | |
class WordPressdeleteMissingImages { | |
// Action/Filter Hooks | |
function __construct() { | |
add_action( 'admin_menu', array( &$this, 'add_page' ) ); |
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
# Example with .webp images | |
# Test run without removal | |
find . -name "*.webp" -type f | |
# Delete files | |
find . -name "*.webp" -type f -delete |
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
lynx -dump https://example.com | awk '/http/{print $2}' | xargs curl |