Home Forums Plugin Support WP User Frontend Pro Running Action Hook on Frontend Post V2

This topic is: not resolved

This topic contains 6 replies, has 2 voices, and was last updated by  Nayem 3 years, 10 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #55352

    Havel
    Member
    Post count: 9

    Hi guys,

    I Have exactly the same problem, BUT I don't know how to use “action hook” and where add this magical code …
    https://wedevs.com/support/topic/running-action-hook-on-frontend-post/

    function wpuf_get_vide_thumbnail( $post_id ) {
    get_video_thumbnail( $post_id );
    }

    add_action( ‘wpuf_add_post_after_insert', ‘wpuf_get_vide_thumbnail' );
    add_action( ‘wpuf_edit_post_after_update', ‘wpuf_get_vide_thumbnail' );

    Someone can help me?
    Thanks guys ๐Ÿ™‚

    #55370

    Nayem
    Moderator
    Post count: 6480

    Hello Havel,

    You can insert those code in your theme function.php file. It will be better if you will create a child theme and put those codes in the function.php file of your child theme.

    Thanks.

    #55465

    Havel
    Member
    Post count: 9

    Hi Nayem

    Thanks for you reply !

    But where in the function.php ?? I'm lost ^^

    Thx mate !

    #55472

    Havel
    Member
    Post count: 9

    I put this code in the end of my Function.php, but nothing append.
    http://hpics.li/3861abc

    Thanks for you future help ๐Ÿ™‚

    #55692

    Nayem
    Moderator
    Post count: 6480

    Hello Havel,

    I have to discuss with our developer about this.

    Thanks.

    #55749

    Havel
    Member
    Post count: 9

    Ok, let me know ๐Ÿ™‚

    Little precision, on my frontend form, where people put the youtube/vimeo video URL is “Post body”(post field) with the normal program.

    Thanks mate.

    #56006

    Nayem
    Moderator
    Post count: 6480
    This reply has been marked as private.
Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Running Action Hook on Frontend Post V2’ is closed to new replies.