Advertisement
websupporter

Declare the support for blogposts

Jun 27th, 2015
447
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.40 KB | None | 0 0
  1.     add_action( 'init', 'theme_review_init' );
  2.     function theme_review_init(){
  3.         /**
  4.          * Claim support for the "Affiliate Product Reviews" plugin
  5.          * 'ri' claims support for the plugin
  6.          * the second parameter explains, whether the plugin is using regular posts ('post') for the reviews
  7.          * or wants a CPT ('ri') to be registered by the plugin to use.
  8.         **/
  9.         add_theme_support( 'ri', 'post' );
  10.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement