Add function Admin -> Mark as Sold
-
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)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Add function Admin -> Mark as Sold’ is closed to new replies.