add_filter('njt_wa_out_of_stock_display', '__return_true'); // Add this code to theme functions.php
When you want to display the WhatsApp widget only on specific pages and custom post types, please follow these steps.
Go to the Display Settings tab and select Show on these pages. It will list your published pages and posts as checkboxes. Please select those pages which you want to display the widget on.
Then, please add this snippet to display the WhatsApp widget in custom post types.
$post_types = ['movie', 'reviews']; // movie, reviews are custom post type you want to display the widget
Your code snippet may look like this. Please add those CPTs based on your purposes.
You're done! Happy customizing~