Advertisement
Guest User

Untitled

a guest
Apr 11th, 2020
186
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function set_post_content($entry, $form) {
  2.     //getting post
  3.     $post = get_post($entry['post_id']);
  4.     //changing post content
  5.     $post->post_content=rgar($entry, '10').": ".rgar($entry, '1')."".rgar($entry, '11')."<br/>Я ".rgar($entry, '5')."<br/>".rgar($entry, '6')."<br/>".rgar($entry, '7')."<br/>".rgar($entry, '8')."<br/>".rgar($entry, '12')."<br/><a href='".rgar($entry, '14')."'><br/>";
  6.     //updating post
  7.     wp_update_post($post);
  8. }
Advertisement
RAW Paste Data Copied
Advertisement