This is the core developer of Dokan. There is a much simpler way to use your custom function for this case. This dokan_add_shipping_tracking_info action can be found within this template : /rafsuntaskin.com/wp-content/plugins/dokan/templates/orders/details.php .
You can copy this into your theme and change the action to your custom function like this :
rt_custom_add_shipping_tracking_info replaces dokan_add_shipping_tracking_info
Then add a custom wp ajax hook in your theme’s functions.php
wp_ajax_rt_custom_add_shipping_tracking_info and use the custom function as callback.
Thanks
Related Posts:
- When is it appropriate to put functions on page template vs. functions.php?
- When to check if a function exists
- Maximum lifetime for nonce
- How to modify files inside wp-includes directory in wordpress
- Customise Grouped Product display in Woocommerce with custom column
- Does hooking into a plugin action / filter override the plugin’s function for that hook?
- Dynamic banner for use on external sites
- In Which Contexts are Plugins Responsible for Data Validation/Sanitization?
- Plugin Form Submission Best Practice
- Best way to abort plugin in case of insufficient PHP version?
- What do you think about custom designed plugin/theme options UIs?
- Where to put third party PHP library?
- Optimize shortcode callbacks
- How to integrate a PHP webmail script into the backend of WordPress?
- How to log plugin errors to plugin error_log file
- Which to use to execute code during the saving of a plugin settings page?
- How can i list current author’s categories?
- Custom theme sufficient or custom plugin neccessary for this feature set?
- How to create custom home page via plugin?
- Adding callback function for wp_ajax_ has no effect
- Sessions not creating correctly in custom function
- Dynamically Override Fancy Title
- Featured Image not showing in admin
- Problem with `wp_mail()`
- Calling a function from functions.php in custom page/ blog post
- What is the Difference between directly call a function and call a function using add_action?
- Call to undefined function get_blog_option()
- Plugin development: is adding empty index.php files necessary?
- Undefined function wp_set_password
- How can I add a CSS rule to edit.php?
- Get the password key when using the wp_new_user_notification_email filter
- Widget update function not saving values
- How to deal with equal & similar arguments for a function?
- Customizer: widget-synced triggers twice
- How to use WP_Term with (menu) argument in the wp_nav_menu?
- WordPress after content Hook & external template part
- override pluggable.php functions
- Disable The Events Calendar plugin from loading its scripts
- creating custom function to log actions in plugin
- How to customize a permalink (URL) structure?
- Where can i find wordpress auto update code flows?
- Custom Taxonomy to dropdown box on adminside wordpress
- Adding option to Gallery shortcode
- How to modify the comments to be displayed in a post?
- Incorporate small angular feature in my wordpress site
- mysql_real_escape_string() vs. esc_sql() in WordPress
- Checking for existence of a page by title?
- how to get context information inside my funcion
- Redirect to another page using contact form 7? [closed]
- Fatal error: Call to a member function get_page_permastruct() on a non-object
- wp_get_post_terms Order by not working
- Function/Class to list categories with checkboxes
- How to obtain the current website URL in my theme?
- What exactly do this function declared into functions.php file of a WP theme?
- Warning: call_user_func_array() expects parameter 1 to be a valid callback
- Show message from backend
- Autogenerate a Table of Contents
- Alternative functions for mysql_free_result and mysql_ping in wordpress functions
- Create Widget or Enable Shortcodes in Sidebar
- WordPress multisite,use same cookies across all website?
- Call to undefined function is_home() or any conditional tags
- unregister_setting() vs delete_option() for plugin update
- How to change WooCommerce loop product title HTML output in single product page and archive page
- how to save wp_editor html content in options table
- wp_schedule_event is registered but function isn’t running
- How to remove/replace current page template?
- Adding tables to dashboard pages programmatically?
- WP 3-way voting system: On to something! Please help!
- How to determine which capability to use?
- How to keep plugin (media-sync) running even the tab is closed?
- Custom Endpoint – Does it possible to use PUT method with WP API Rest?
- Why won’t this submenu page show? – My First WordPress Plugin
- function add custom fields to media gallery
- Custom Plugin: How to Include Install Buttons of other 3rd Party Plugins?
- WordPress: I wanted to use Add rewrite rule multiple times for multiple CPT in my plugin
- WordPress Ajax not returning Response
- Remove tag from all posts when publishing new post
- Determine if the current page, is being edited
- external Integration with wordpress timeout error
- Making adding info to an overlay bio easy for average user?
- Remove from a div by class name from post page if post author role is not administrator
- Ajax not working to insert, query and result data
- Associating special meaning with user id 0
- WordPress permalink setting
- Theming Custom Plugin Page
- Why is ‘register_activation_hook’ undefined?
- Link to a admin submenu item using a custom link
- Adding class to the parent of current-post-ancestor / current-menu-parent / current-post-parent
- How do I store a custom dataset in WordPress to best take advantage of API?
- How can i call from custom fields to the category editor?
- Why does this fail: Disabling plugins enqueue_script() in functions.php
- Developing Themes on WordPress, Looking for Excellent Tutorials [closed]
- How to Implement SAM Broadcaster with WordPress? [closed]
- How to plugin function code move to theme function.php ? I’ve tried below code but not working [closed]
- Custom plugin not appearing
- WordPress simple ‘Hello World’ plugin – problems
- Is there any other ways to replicating changes on live from staging without pushing from git
- Can I log the searches that are returning 404 in the DB?
- Custom fields in the billing address section woocommerce
- Remove and strip html tag values