• Resolved max143

    (@max143)


    I have such code in functions.php

    add_action( 'save_post', 'add_review_db', 10, 3 );
    function add_review_db( $post_ID, $post, $update ) {
     //my code
    }

    If I added new post from admin panel, this function executing. But if I submit form [user-submitted-posts] function add_review_db does not executing, why? And how I can use hooks in with this plugin?

Viewing 2 replies - 16 through 17 (of 17 total)
  • Plugin Author Jeff Starr

    (@specialk)

    I am using get_post_meta() with USP on numerous sites. The trick is to get the correct Post ID and field name.

    Plugin Author Jeff Starr

    (@specialk)

    Hi max143, did you get this sorted out? Gonna mark this thread as “resolved” to keep things organized. Please post again if I may be of service. Thank you.

    • This reply was modified 8 years ago by Jeff Starr. Reason: add info
Viewing 2 replies - 16 through 17 (of 17 total)

The topic ‘Event(hook) save_post’ is closed to new replies.