sweetheatmn
Forum Replies Created
-
Hi @marceljm,
Thanks for your timely response.
Yes, we developed this plugin that inserts the posts and it uses the official wp_insert_posts plugin normally by providing the post title and post content
as you has a filter on wp_insert_post_data, WordPress sends you the post array containing all the info before inserting the post but you then use str_replace that will return a string and that converts the post_parent type from an Int to a string
str_replace can search and replace for a test and returns a text, you have called it on the whole array and this is the issue as shown on the previous screenshot
as shown on the screenshot, you want to modify the post_content only so please change your code to do the search and replace to the post_content only and not the whole Array$data['post_content'] = str_replace( $content, $cleanContent, $data['post_content'];
Regards,AtefThanks for the quick update and the resolution.
Forum: Plugins
In reply to: [SEO Auto Links] Working again: Fix for the preg_replace problemThanks for sharing the fix
here is the plugin after applying the fix
https://www.mediafire.com/file/x9rd62chz2l19oq/seo-auto-links.zip
Forum: Plugins
In reply to: Pinterest Auto Pin Plugin??WordPress pinterest automatic plugin is a good working one check it here
https://codecanyon.net/item/pinterest-automatic-pin-wordpress-plugin/2203314?ref=SignDev
it is not free but just 5 bucks .