angeljs

Enable comments For MarketPress products

Mar 27th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. //Add comments to MarketPress Products - By http://www.Lady-Angel.com
  2. //Developer - http://www.wpmudev.org
  3. add_action( 'init', 'mp_comments_enable' );
  4. function mp_comments_enable() {
  5. add_post_type_support( 'product', 'comments' );
  6. }
  7. add_filter( 'comments_open', '__return_true', 999 );
  8. //End add comments to MarketPress Products - By http://www.Lady-Angel.com
Advertisement
Add Comment
Please, Sign In to add comment