Created
June 30, 2014 06:54
-
-
Save pommiegranit/19e2e8c863eb10c0753a to your computer and use it in GitHub Desktop.
Switch on semantic markup options for images in WordPress
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 | |
/* | |
Plugin Name: Semantic | |
Plugin URI: http://premium.wpmudev.org/blog | |
Description: Activate Semantic Markup options | |
Author: Chris Knowles | |
Version: 1.0 | |
Author URI: http://twitter.com/ChrisKnowles | |
*/ | |
function activate_semantic_markup() { | |
$args = array( | |
'gallery', | |
'caption' | |
); | |
add_theme_support( 'html5', $args ); | |
} | |
add_action( 'after_setup_theme', 'activate_semantic_markup' ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment