• Resolved Houdini

    (@romariokg)


    I found this discussion on the forum, but the code doesn’t work! If you add this code, the site crashes when you enter the admin panel!

    add following code in theme functions.php file –
    add_action(‘admin_init’, function(){
    update_post_meta(post_id, ‘_rtcl_mark_as_sold’, ‘1’);
    });

    Can you give me the current code?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Ali Akbar Reyad

    (@alireyad)

    Hi,
    That user wanted to mark as sold for a listing. that’s why provided the code. Not sure about your requirements. Here, post_id means specific listing id. If you want to mark as sold a specific listing then use that listing id here.

    Thank you

    Thread Starter Houdini

    (@romariokg)

    Hello!

    In short, I would like to see the mark_as_sold button in the admin area under each user announcement.

    Maybe there is some kind of hook that I can add to the functions.php file???

    Plugin Support Ali Akbar Reyad

    (@alireyad)

    Hi,
    Sorry, not possible it right now. You have to add custom meta for admin area.

    Please, create ticket from our site for pro feature related issues.

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add function Admin -> Mark as Sold’ is closed to new replies.