Forked from MaryOJob/pmpro-user-pages-enable-comments.php
          
        
    
          Last active
          July 2, 2024 06:12 
        
      - 
      
- 
        Save JarrydLong/20e375858f576e8e7429e8546ddfb3d8 to your computer and use it in GitHub Desktop. 
    Enables comments for User Pages
  
        
  
    
      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
    
  
  
    
  | //Changes default content | |
| function mypmpro_change_user_pages_content($postdata, $user, $level){ | |
| $postdata['post_content'] = 'My Content Here'; | |
| return $postdata; | |
| } | |
| add_filter('pmpro_user_page_postdata', 'mypmpro_change_user_pages_content', 10, 3); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment