As previously announced via banners and our newsletters, support is no longer available through this platform.

For easier navigation, you can still click on "Submit a Ticket" here, choose the appropriate category, and you'll be redirected to the correct support channel for your plugin.

You can still access your previous tickets and browse public tickets, but please note that responding to tickets is no longer possible.

Paid customers: Please log in to your store account for support.

Pre-purchase questions: Use the support widget in the bottom-right corner of our websites:
https://wpamelia.com
https://wpdatatables.com
https://wpreportbuilder.com

Okay
  Public Ticket #1011329
Table Edit Email Notification
Closed

Comments

  •  2
    Michael started the conversation

    Dear Support Team,

    I have got a question: Is there any chance to set up an email-notification to get notified when the table was edited via the frontend-editor. I could not find any.

    For this reason, I thought about using the "wpdatatables_after_frontent_edit_row( $formdata, $row_id_value, $table_id )" action to do it programmatically in my functions.php. The problem is that the emails are send everytime when any table is edited. I just want to enable the notification for one specific table. Unfortunately, using the "is_single( 'post_id' )" conditional tag for the post the table is posted in does not work. Do you know why by any chance?


    Cheers, Michael

  • [deleted] replied

    Hi Michael,
    Thank you for your purchase.

    In filter wpdatatables_after_frontent_edit_row( $formdata, $row_id_value, $table_id ) you have available $table_id variable so you can do if statement to ask e.g:

    if ($table_id == 1) {
        // Your function
    }
  •  2
    Michael replied

    Thank you, that worked for me! I did recognize that there was parameters I could use.  I did not know that I had to specify them in the add_action function to use them

  • [deleted] replied

    Hi Michael,

    You are welcome. We'd greatly appreciate it if you could take a minute and leave a review on CodeCanyon on this link. Thanks!