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
| /** Set alt, title and description for image uploads */ | |
| function set_image_meta_upload( $post_ID ) { | |
| if ( wp_attachment_is_image( $post_ID ) ) { | |
| $my_image_title = get_post( $post_ID )->post_title; | |
| $my_image_title = preg_replace( '%\s*[-_\s]+\s*%', ' ', | |
| $my_image_title ); | |
| $my_image_title = ucwords( strtolower( $my_image_title ) ); | |
| $my_image_meta = array( | |
| 'ID' => $post_ID, | |
| 'post_title' => $my_image_title, |
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
| /** WP Debug Settings */ | |
| define('WP_DEBUG', true); | |
| define('WP_DEBUG_LOG', true); | |
| define( 'WP_DEBUG_DISPLAY', false ); |
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
| ## EXPIRES CACHING ## | |
| <IfModule mod_expires.c> | |
| ExpiresActive On | |
| ExpiresByType image/jpg "access plus 1 year" | |
| ExpiresByType image/jpeg "access plus 1 year" | |
| ExpiresByType image/gif "access plus 1 year" | |
| ExpiresByType image/png "access plus 1 year" | |
| ExpiresByType text/css "access plus 1 month" | |
| ExpiresByType application/pdf "access plus 1 month" | |
| ExpiresByType text/js "access plus 1 month" |
NewerOlder