Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'wp_my_admin_enqueue_scripts' not found or invalid function name in /mnt/data/vhosts/casite-961871.cloudaccess.net/httpdocs/wp-includes/class-wp-hook.php on line 286
I found this answer on Stack Overflow, answer this exact question.
I've modified it slightly, because I'm using a button and not an anchor:
jQuery( ".modal" ).on( "show.bs.modal", function
While I'm trying to extend Woocommerce Rest-API routes with a custom one I face the following problem. I have the following class which tries to hook inside Woocommerce API
class API_LOADER
{
public function init()
{
add_action( 'woocommerce_api_loaded', arra
How do I make the HTML form's action target file 'aware' of classes that WordPress has already loaded?
File A -> Creates a WordPress shortcode that inserts a form that has 'File B' as the target.
File B goes to process the submitted data, but throws "Class Not Found" whenever I try to i
I have an app written in Delphi and Indy components for Windows platform, with which i can edit most of the data on my site using REST Api.
The site is working under WordPress, with Real Homes theme.
I need to load a property from this external application. I can modify, cities, types of properti
I am currently trying to build a plugin for wordpress to build a settings page.
But for some reason when I use add_action("admin_init", array(class_object, 'function_name')) it will run the add_action function but won't get to the callback.
It just skips it.
I have tried maki
I would like to override a WP (WooCommerce AJAX function) using add_filter.
The original code is set in a WC OOP class via something like:
add_action( 'wp_ajax_wc_function', array( $this, 'wc_do_stuff' ) );
add_action( 'wp_ajax_nopriv_wc_function', array( $this, 'wc_do_stu
After the save_post action runs, I'm attempting to also use the admin_notices action and it doesn't work. What am I doing wrong?
If I move the admin_notices action into the constructor, it works fine (of course it shows for every page in the admin wh
I want to create a Callback URL to update the order status when data in JSON format is POST to it.
Post Format Example:
"hash": "43745580XXXXXXXXXXXXXXXXXXXXXX",
"status_feed": [{
"order_id": "123456",
"awbno": "1348616939310",
"pickupdate": "2017-1
I am using woocommerce with some custom code to add more details on the cart object when it's submitted to the db.
This works fine, now I am afater a way to clear the localstorage after the order has correctly being placed.
I was thinking about hooking into 'woocommerce_thankyou'