to redefine the AJAX action, you can try that
add_action(AE_Base::AJAX_PREFIX . "ae-profile-sync", function () {
$profile_action = $GLOBALS["et_freelance"]->profile_action;
// remove base action
remove_action(
AE_Base::AJAX_PREFIX . "ae-profile-sync"
,
[
$profile_action,
"sync_post",
]
, 10
);
// add new AJAX action
add_action(
AE_Base::AJAX_PREFIX . "ae-profile-sync"
, function () {
// new code here
}
);
}, 1); // priority 1 to launch this before the method sync_post
Related Posts:
- Is it possible to disable a function of a parent theme?
- How to override an unpluggable parent theme function?
- How do I remove a require_once admin panel from the parent theme from the child theme functions.php?
- Copyright info change in Theme Child PHP
- Add footer.php to WordPress child theme
- Setting up the child theme so as to enable right-to-left WordPress?
- Understanding WordPress child theme custom JS loading
- Overriding a theme redux file in child theme
- Adding tawk.to code just before body tag on functions.php file
- WordPress child theme fails to override parent navigation menu in /inc/structure/header.php
- How to style options page in dashboard?
- Copyright info change – Corporate Plus Theme PHP [closed]
- How do I check or test a WordPress Auto Year Change Script?
- How to have different site identity logos on each page on Astra Theme [closed]
- Removing “Powered by” footer using child theme PHP [closed]
- Overide Variable in Child Theme
- child parent styles enqueue order
- How to style injected code in header section?
- Child Theme’s Read More Text
- Need advice on theme customizer and child themes
- Proper way to remove html code on child theme
- remove_action from parent theme using child theme functions.php
- File from parent theme imported to child theme doesn’t work – any ideas?
- How to change this ajax function to submit to the default wordpress content area instead of the custom field ‘seller notes’?
- Child theme overirde template-tags in a theme built on underscores in inc/template-tags
- PHP “warning include_once(): Failed to open stream” Simple HTML DOM in WordPress Child Theme
- Removing get_template_part in child theme
- Enforcing password complexity
- Customize default settings on new sites on multisite
- Check if a menu is empty?
- Dynamically change feature image in customiser
- Creating wordpress user registration form
- category not display in word press grammatically
- How can I loop into two different DIVS without repeating the DIVs
- Removing unnecessary wordpress files
- Use is_product_category() properly
- Theme Options: If There is No Input, Don’t Display?
- Placing raw HTML inside a WordPress shortcode
- Changing Woocommerce flat rate every nth number of items
- Convert all images to PNG on file upload
- If search results empty then execute certain code
- Way to querry data (tags) from a wordpress database?
- Using fwrite() and “a” appends multiple times instead of once
- Where in PHP do I move title and meta (date) to bottom of each blog section?
- Making BuddyPress Activity Stream (Post Type) Featured Images Clickable [closed]
- Keyword checking in Gravity Forms
- how to refresh div on template part?
- Child page menu in sidebar
- Title Case WordPress Menu Items
- How to disable controls in theme customizer?
- register_taxonomy() take much queries
- is there a benefit in using a constant over get_stylesheet_directory_uri?
- WooCommerce Tabs [closed]
- ::before on open/close function [closed]
- REQUIRED: get_bloginfo(‘template_url’) was found in the file search.php. Use get_template_directory_uri() instead
- How to check if a PHP string is different than meta field?
- Displaying posts based on category
- Issue with fetching mysql data and displaying results via shortcode in webpage
- Noindex Posts From Certain Authors In WordPress
- Show all tags within a category?
- This function is deprecated; use mysql_real_escape_string() instead
- How can I alter this code to accept a slug as well as an ID?
- Enqueueing a code block from an options framework
- Adding a ‘style=’ bit to image_send_to_editor output
- Post Views Code Hacks
- Closing WP_LINK_PAGES DIV ID w/After Argmuent
- Auto create Nextgen Gallery on post creation [closed]
- Hide media for non logged in users
- Inline CSS header style priority function.php Child (no enqueing I think)
- Adding an “Upgrade Subscription” button to an Elementor page
- Jetengine Forms – Media upload path
- Custom function that re-writes page title breaks when the Yoast plugin is activated
- is_front_page is not working in my functions.php
- Is it possible to update the dataset using update_post_meta
- update_user_meta as multiple value but with same meta key
- Hide payment method based on user role AND minimum cart value
- Update $wpdb query with AJAX
- How to bind each “the_content” elements to a custom variables
- Permalink changes after several minutes after saving post
- how to use auth_redirect() redirect visitor to login page if they are not login when they click account and order page?
- how to add functions to my function.php using a child theme?
- Trying to publish a little bit of Javascript on the homepage AND at the bottom
- Custom Bulk Actions handler not firing
- Get field in readable word
- How can disable wordpress emails notifications?
- Wrapping shortcode content in a span or link
- Permission functions within wordpress
- 2 small questions: How to redirect to a created page & show that pages title in wp, bp
- ACF Date fileds to Age Convert [closed]
- How do I get Roboto Google Font to display normal font-style? [closed]
- Loop on a wordpress Page instead of content coming from the WP text editor
- Child-theme suddenly stopped working [closed]
- Slug not being updated using wp_insert_post
- Hide child of parent categories already hidden with “get_terms_args” – Woocommerce
- The search doesn’t work properly
- Add attribute to featured image with filter (wp_get_attachment_image_attributes)
- Replace block content with an array
- Unable to logout correctly after wp-login file was modified
- Woocomerce custom add to cart button edit functionality [closed]
- Put ACF function output code the_terms