Zoker

Untitled

Dec 3rd, 2021
729
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. function custom_content_replace ( $content ) {
  4.     global $post;
  5.     $content = str_replace('{{post_title}}', $post->post_title, $content);
  6.  
  7.     return $content;
  8. }
  9. add_filter( 'the_content', 'custom_content_replace', 1 );
RAW Paste Data