| 1 |
<?php |
| 2 |
/* |
| 3 |
Plugin Name: Image Title Remove |
| 4 |
Plugin URI: https://developer.wordpress.org/plugins/image-title-remove |
| 5 |
Description: Remove titles for all images. It will remove image title if you have too many random hashtag image names on website. So it will not show on hover as text. |
| 6 |
Version: 1.0 |
| 7 |
Author: Slavisa Ristic |
| 8 |
Author URI: http://www.slavisaristic.com |
| 9 |
License: GPL2 |
| 10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html |
| 11 |
*/ |
| 12 |
|
| 13 |
function add_custom_script_image(){ |
| 14 |
?> |
| 15 |
<script> |
| 16 |
jQuery(window).load(function(){ |
| 17 |
jQuery('img').removeAttr('title'); |
| 18 |
}); |
| 19 |
</script> |
| 20 |
<?php |
| 21 |
} |
| 22 |
add_action('wp_footer', 'add_custom_script_image'); |