Created
June 22, 2017 07:35
Star
You must be signed in to star a gist
Code pour supporter l'AMP (Accelerated Mobile Pages) dans bbPress (plugin Code Snippets)
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
/** | |
* Ajoute le format de l'AMP (Accelerated Mobile Pages) pour bbPress | |
*/ | |
add_action( 'amp_init', 'amp_bbpress_init' ); | |
function amp_bbpress_init() { | |
add_post_type_support( 'topic', AMP_QUERY_VAR ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment