Blank non selectable field drop down

This topic contains 21 replies, has 3 voices, and was last updated by  Dotty Directory 7 years, 10 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #231153

    Dotty Directory
    Full Member
    Post count: 254
    This reply has been marked as private.
    #231227

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    #231237

    Dotty Directory
    Full Member
    Post count: 254
    This reply has been marked as private.
    #231314

    Kiran
    Moderator
    Post count: 7069

    Hello Dotty,

    You can use following code snippet to get gd_place submit action.

    
    
    
    /**
     * Fires once a post has been saved.
     *
     * @param int     $post_ID Post ID.
     * @param WP_Post $post    Post object.
     * @param bool    $update  Whether this is an existing post being updated or not.
     */
    function geodirectory_submit_gd_place( $post_ID, $post, $update = false ) {    
        if (  !empty( $post->post_author ) && !( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) ) {
            $user_id = $post->post_author;
            update_user_meta( $user_id, '_new_user', '0' );
            error_log( 'geodirectory_submit_gd_place() -> user_id : ' . $user_id . ', post_ID : ' . $post_ID );
        }
    }
    add_action( 'save_post_gd_place', 'geodirectory_submit_gd_place', 10, 3 );
    
    

    p.s. feel free to share your valuable feedback with a nice review here anytime : https://wordpress.org/support/view/plugin-reviews/geodirectory
    It really helps us grow more. 🙂

    Thanks,
    Kiran

    #231431

    Dotty Directory
    Full Member
    Post count: 254
    This reply has been marked as private.
    #231450

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    there is a full codex with all functions, actions and hooks: https://wpgeodirectory.com/codex/codex/

    Thank you very much for the review! 🙂

    #231458

    Dotty Directory
    Full Member
    Post count: 254

    Ah fantastic, thank you very much for your help!

    You can resolve this thread now 🙂

Viewing 7 posts - 16 through 22 (of 22 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket