[wp-hackers] Stopping recursion with save_post/wp_insert_post action

Otto otto at ottodestruct.com
Sat Aug 21 06:13:22 UTC 2010


Don't remove the hook. Nathaniel was correct, check the post_type instead.

-Otto



On Fri, Aug 20, 2010 at 11:21 PM, Azizur Rahman
<prodevstudio+wordpress at gmail.com> wrote:
> My media attachments are not a file they are simply an url to file on
> another server which end user does not know the full path.
>
> I have got it working by removing the hook before calling it again.
>
> Thank you all for your help.
>
> Kind Regards,
> Azizur Rahman
>
> On Sat, Aug 21, 2010 at 5:15 AM, Mark E <mark at simplercomputing.net> wrote:
>
>>
>>
>> On 08/20/2010 10:01 PM, ProDevStudio wrote:
>>
>>> I am calling wp_insert_post again to place a media attachment.
>>>
>>
>> You might look at wp_insert_attachment()
>>
>> Mark
>>
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list