• Resolved fortafy

    (@fortafy)


    Is it possible to notify the WordPress Admin and/or a designated email when there is a mapping error? This seems to fail silently.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jonathan Stegall

    (@jonathanstegall)

    Currently this is not possible. It might be something that could be added as an option, or provide a developer hook that you could use to build it as an add-on, but definitely neither of those exists at this time. I’d be willing to consider a pull request for this if you’d want to build it.

    Thread Starter fortafy

    (@fortafy)

    How much would you charge to develop this into the product? I use Object Sync in multiple environments and this would be very, very useful. Thanks.

    Plugin Author Jonathan Stegall

    (@jonathanstegall)

    I think you’d be better off building an add if you have that capacity. The plugin already has a logging system, and the logging system itself has an action that runs whenever a log entry is created.

    The plugin runs: do_action( 'wp_post_insert_log', $log_id );

    You could do something like:

    add_action( 'wp_post_insert_log', 'myfunction' );
    function myfunction( $log_id ) {
    $log = get_post( $log_id );
    // write some code here to email the log entry wherever you want it to go
    }
    

    I don’t think I would build this into the plugin because email is complicated to support in a broad way with formatting and spam and I don’t think that’s a good use of this plugin’s capacity. But an add-on seems like something that wouldn’t be super hard for a WP developer to build for you, if you don’t have one.

    Thread Starter fortafy

    (@fortafy)

    Thanks Jonathan. I will seek out a developer to build this. Getting alerted when there’s a mapping error is a definite need — whether an email or something with the WordPress dashboard. Currently it’s a daily reminder to go make sure nothing unexpected happened.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Notify Admin on Mapping Error’ is closed to new replies.