Add extra class to wp-caption?

Adapted from this answer Add this code to your functions.php file: add_action( ‘after_setup_theme’, ‘wpse_74735_replace_wp_caption_shortcode’ ); /** * Replace the default caption shortcode handler. * * @return void */ function wpse_74735_replace_wp_caption_shortcode() { remove_shortcode( ‘caption’, ‘img_caption_shortcode’ ); remove_shortcode( ‘wp_caption’, ‘img_caption_shortcode’ ); add_shortcode( ‘caption’, ‘wpse_74735_caption_shortcode’ ); add_shortcode( ‘wp_caption’, ‘wpse_74735_caption_shortcode’ ); } /** * Add the new class to … Read more

Multi user site and image captions

I’ve tested this in WP 4.5 with the default author role and this issue doesn’t seem to exist anymore. My findings: 1 As an author you cannot edit media properties directly. 2 As an author you can edit media properties when you are inserting an image in a post. This will cause the image to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)