Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $updatedPostId= wp_update_post(
- array(
- 'ID' => $thisId,
- 'post_title' => $newTitle
- )
- );
- if(
- ($newTitle!='')&&
- (strcmp($newTitle, get_the_title($thisId))!=0)
- )
- Eg:
- From 3rd party: Arnold Iron Whey [2 LBS] [Cookies & Cream]
- From Wordpress: Arnold Iron Whey [2 LBS] [Cookies & Cream]
- (Note: My text editor highlights the ampersand and the space immediately after it
- in the 3rd-party product name but not in the one from Wordpress)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement