• Resolved vinayakt3

    (@vinayakt3)


    Hello there!
    I am using nelio content to post stuffs from wp to social media.
    I also have local setup for the website for testing etc.
    The problem is that nelio content is also posting new posts from the local dev too.
    I can not deactivate the plugin for some testing purpose.
    Is there any way which i can do for local environment so that it can not post something or connect to the outside in any way ?
    Is there any filter or constant anything ?

    waiting for the reply.

    Thank You ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author David Aguilera

    (@davilera)

    You can “Pause” the publication of messages in your local setup. To do so, go to Nelio Content ? Settings ? Automations and, right at the end, Pause Social Publication. You can also pause/resume publication from the Nelio Content ? Calendar, three dots menu (upper right corner), Pause Social Publication.

    Thread Starter vinayakt3

    (@vinayakt3)

    Thanks for your reply.
    But i sync my local db with live one every 24 hours.
    So i need to change these settings every time.

    Is there any hook or constant which i can do in custom code ?

    Plugin Author David Aguilera

    (@davilera)

    Oh, I get it. You don’t have two separate sites — your local setup is an exact copy of your live setup, which you sync every now and then.

    In that case, you need the hook nelio_content_staging_urls so that you can disable the plugin on your local site (but keep it live on your live site).

    Thread Starter vinayakt3

    (@vinayakt3)

    Thank you very much ??
    That should work for me.

    Thread Starter vinayakt3

    (@vinayakt3)

    Oh.. sorry for bothering you again.
    I found out that i am already using this filter from past 9 months.
    It was doing fine but last week it did not work and it posted content from ***.test 3-4 times.

    It is using home_url() to check, may be home_url() could send wrong url?
    Is there anything more fail safe ? like some filter that blocks posting or something.

    something where we maybe can give true/false back based on things we decide, like url or environment.

    Plugin Author David Aguilera

    (@davilera)

    There’s no other option. You’ll have to look into why home_url is not working as expected. Perhaps you can add an additional hook in your staging environment to make sure home_url returns a different URL than that of your live site?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to stop to post content online from test urls’ is closed to new replies.