Advertisement
designbymerovingi

BP History Code Injection example

Jan 11th, 2016
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.30 KB | None | 0 0
  1. function mycred_pro_insert_html_bp_history( $content ) {
  2.  
  3.     $insert = '<p>Hello this is a text that is to be shown before the history.</p>' . do_shortcode( '[shortcode]' );
  4.  
  5.     $content = $insert . $content;
  6.  
  7.     return $content;
  8.  
  9. }
  10. add_filter( 'mycred_bp_history_page', 'mycred_pro_insert_html_bp_history' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement