• Resolved scotiangoldit

    (@scotiangoldit)


    Hello!

    Since one of the recent updates my posts added through this plugin are no longer triggering an SMS text to be sent to my users from a separate plugin. When i create a post using the WordPress dashboard the SMS is sent no problem. Only when I am using this plugin to create the post it does not work.

    It used to work fine. I am wondering if there is a directory of previous versions I could install to troubleshoot this issue?

    Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Jeff Starr

    (@specialk)

    Hello!

    Yes you can download previous version via this page:

    https://www.ads-software.com/plugins/user-submitted-posts/advanced/

    And if you discover why things stopped working, please let me know so I can restore any missing functionality.

    Thanks!

    Thread Starter scotiangoldit

    (@scotiangoldit)

    Here is communication coming from the SMS plugin developer. Is your plugin using a custom post type instead? Is there anything that can be done to get this working again?

    We use the built in WordPress action for detecting when a post is published, defined by this: https://codex.www.ads-software.com/Plugin_API/Action_Reference/publish_post – you’ll need to check what the other plugin is doing, but most likely it’s using a custom post type which isn’t compatible with publish_post.

    Plugin Author Jeff Starr

    (@specialk)

    Interesting, thanks. A couple of points:

    – USP never has used the publish_post action hook, so nothing changed from the previous version in that regard.

    – USP gives you a choice which post type to use, so it’s up to you whether to use WP Posts or some other post type.

    Another thing that you can check is your site’s error/debug logs, to see if any errors or warnings or generated when the expected functionality fails to occur.

    Thread Starter scotiangoldit

    (@scotiangoldit)

    Hello Jeff,

    Is there any option to have the publish_post action hook triggered when USP creates a post? Either through a future update or by using some custom code on my site? Possibly the other plugin has changed how it is recognizing the post being published…

    When I look at the post type setting on USP the only options are WP post (Recommended) and WP page. I am not looking to have a page created each time.

    I am not getting any traction from the other plugin dev so you are my only hope to get this working again!

    Plugin Author Jeff Starr

    (@specialk)

    Yes absolutely, will add publish_post hook in the next version. Will try to push something out within the next few days, probably sometime next week if all goes well.

    Thread Starter scotiangoldit

    (@scotiangoldit)

    Excelent! Thank you very much. I will wait for the update to be published

    Plugin Author Jeff Starr

    (@specialk)

    I ended up adding wp_update_post() which calls the publish_post action hook. This is added in version 20180323, which is now available.

    Thread Starter scotiangoldit

    (@scotiangoldit)

    Hello Jeff,

    I have updated to the latest version of USP and still do not get the SMS delivered through the 3rd party plugin unless I create the post under the back end of wordpress. Is there a setting I need to change to us wp_update_post()?

    Plugin Author Jeff Starr

    (@specialk)

    Nothing else needs done for the publish_post hook to work. And you can verify that it’s working by adding the following function:

    function usp_post_published_notification($ID, $post) {
    	error_log('This message added via publish_post hook.');
    }
    add_action('publish_post', 'usp_post_published_notification', 10, 2 );

    This results in an error message added to the site’s error log, which confirms the hook is working properly.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Previous Versions?’ is closed to new replies.