Thanks WisdmLabs. I traced it finally after the discussion. The changes in product page are appearing now. Below is the mistake I have done.I am posting this as it might help others with similar problems.
In my plugin I am calling file B in file A using require_once. I have placed my function timeslot_display() and hook calling line in file B which did not give any results. When I copied the entire code of file B to file A, then I am able to see the changes in product page. Not sure why this happened but it worked.
Related Posts:
- Woocommerce – Hide a Column in Cart Table
- How do I change the initial quantity of a product in woocommerce?
- how to add custom functionality after woocommerce place order button
- Remove an action by extending class and replacing it
- WooCommerce change Tax Class programmatically when Recalculating an existing Order [closed]
- Hide one specific woocoomerce product
- how to retrieve post_id under woocommerce_add_to_cart_validation hook?
- Woocommerce: block user removing cart item
- Trigger a JavaScript function based on the data fetched from Woo commerce hook
- Which hook should be used to add an action containing a redirect?
- add_action hook for completely new post?
- WordPress Hook for user register
- Is there widely accepted phpDoc syntax for documenting which hook calls a function?
- What’s the earliest point I can get the queried object ID?
- How do I Make a Theme “plugin-ready”?
- WordPress scheduled task is called but not executed
- How to iterate through custom posts and add the title to an array
- How to modify post content before writing to database?
- How to use filter hook ‘post_updated_messages’ in coherence with action hook ‘save_post’
- How to check if certain plugin exists and in expected version
- Plugin development, hooks, generate content
- Is it possible to create an action hook using do_action() within add_action()?
- Hook event for upload image in the menu
- Help with callback using do_action_ref_array
- Add multiple shipping rates from add_rate function with custom ID
- set_sale_price in WooCommerce [closed]
- Best Practices for Creating and Handling Forms with Plugins?
- Is there a better way to implement responsive images than what WordPress uses by default?
- How to prevent action in ajax request, when in admin side?
- How to get orders with used coupon in WooCommerce
- Order properties should not be accessed directly
- How to delete an user including data from custom database tables
- How to check if Woocommerce Order number equals to post ID?
- Why is my javascript not invoked in my hooks except wp_head?
- How plugins_loaded works?
- Namespaced action and filter tags
- .mo translation strings not loading in PHP scripts that handle AJAX calls
- WooCommerce Admin Reports : Get custom product report based on date range
- Trying to understand order and frequency of action hooks firing
- Woocommerce checkout update totals with datepicker
- correct way to call javascript into hook function
- Woocommerce – Convert Delivery method into a custom field
- Prefixing plugin hooks (actions/filters) with a wrapper class or functions
- Show disclaimer with accept button before redirecting to the payment gateway website
- How do I apply a custom discount to individual product total prices depending on their categories on the cart and checkout pages of WooCommerce? [closed]
- Can’t get woocommerce_get_price_html to work [closed]
- Woocommerce Composite Products – Add a composite product to cart programmatically via ajax [closed]
- template_redirect or admin-ajax.php?
- WordPress custom taxonomy check box to dropdown
- Force HTTPS 301 redirect with hook
- Change WooCommerce Email Header using custom plugin
- What action hook can I use to add a JavaScript to a page post using a theme template that is not including get_header() nor get_footer()?
- Plugin uninstall function is not working
- Bug: Post needs to be updated twice when adding action for save_post hook
- Trying to get class to instantiate ONCE (or, “why do I keep punching myself in the head?”)
- Why enqueue styles on hook?
- How to change WooCommerce loop product title HTML output in single product page and archive page
- Set _regular_price 0 if empty in woocommerce product
- How remove trashed WooCommerce orders from wc_get_orders() result?
- Duplicate shipping method logic to another shipping method [closed]
- get_shipping_methods() return empty rate
- Can I Hook Into the TinyMCE Insert/Edit Link Button to Use Shortlink For Post?
- Redirect returning users to a certain page?
- Restrict certain actions to plugin-specific admin menu pages only
- wp_schedule_single_event is set correctly but sometimes not fired
- Dynamic page generation upon purchase of a product
- Set the payment processor callbacks to a plugin
- Make a php array load faster
- Pass Values in URL on WooCommerce Product Page
- Woocommerce place order update shipping price
- How to update global variables in plugin activation callback?
- Add two button to page and post admin to redirect to : add new & list of (posts – pages) just after saving post or page
- `registration_errors` filter doesn’t seem to be called
- How to grab data after wp user search is complete
- How do I add filter with woocommerce categories?
- How to direct WordPress to load custom template for custom post type
- Why does do_action pass a blank string as the first parameter if no $arg is set?
- Add a custom submenu under submenu in a Custom WordPress Plugin
- PHPUnit Testing and woocommerce Constant
- Redirect WooCommerce checkout to cart
- Hook for validating and rejecting frontend image upload
- Does hooking into a plugin action / filter override the plugin’s function for that hook?
- Nested Hooks with do_action for performance reasons – safe/necessary?
- How do I remove an action hook inside a class that is called by another class?
- Woocommerce Product finder feature on home page
- Woocommerce Single Product Tabs Got Duplicate
- Woocommerce product not appearing in category list page when created programatically [closed]
- Override theme’s WooCommerce file
- remove different admin menu for specific users
- WordPress Reset password Strength set to medium
- replacing jquery google cdn with a new version dynamically
- plugin modal/popup integration best practice
- WP: adding Javascript to specific woo commerce pages
- Get user logged in status from within a plugin. $current_user not defined
- Insert plugin html content to a specific spot in the frontpage
- Send Webhook when post-status is publish or trash
- Using “add_image_size” to register custom image sizes inside plugins not working
- Return custom product in ajax call loop
- Execute callback after REST API request completes + Response is sent
- High-Performance Order Storage conflict action `manage_shop_order_posts_custom_column`