Careful where you are placing your brackets.
The hook should look like;
add_action('profile_update', array( $this, 'user_profile_update' ), 10, 2 );
Note the close bracket after the method name
Related Posts:
- Registering Class methods as hook callbacks
- Plugin activation hook in an abstract class
- Plugin: Hooking up classes that have their own hooks
- WordPress Custom Hook with Class method
- OOP Plugin: Where should I place the action hooks in the class?
- How to include code only on specific pages?
- Schedule WordPress Auto-Updates to only run during business hours
- Remove action from plugin on other plugin
- Preventing a plugin from updating
- How To Determine If A Filter Is Called In A Sidebar/Widget Context?
- Is there any debug toolbar that shows whick hooks are called for the current page in WordPress?
- When can you get current page ID and initialize hooks right after?
- Filter Hook on plugin update
- WordPress Hook that will run when media file deleted
- Disallow a user to post in certain categories
- Generic plugin (de)activation hook?
- Adding a form at the end of the content
- Trying to get logged-in user data inside php class
- Use external link in the add sub menu
- How can I add a custom meta value on file upload?
- Check if a class exists within a method
- How can I filter blog name?
- why does the add_action(‘the_content’) overwrite my page
- Fatal error: Class not found in
- Showing Notifications While Activating Plugin
- Is it possible to remove this action? (as it’s added just before it’s called)
- Woocommerce Shipping module available only for type of products [closed]
- WordPress Plugin Boilerplate – add_action hook in static “activate” function
- Put code into body tags near top, using a plugin
- Hook before & after plugin / core update
- publish_post plugin hook doesn’t always pass $post->post_content
- get_plugins() doesn’t work after plugins_loaded
- add_action in functions.php, do_action in plugin?
- add action for displaying posts using a shortcode
- Randomize attachment IDs
- Override WP Class Private Function
- ‘wp_login’ action hook not working with wp-login.php file
- Are there hooks for WordPress updates?
- Pass info from functions.php to plugin
- Getting user roles in plugin files
- Remove rewrite rules generated by plugin during deactivation
- Change permalink structure hidden button edit
- Where (or when) should I register a new taxonomy?
- WordPress filter that hook after each action/filter hook
- When to use action hooks and plugins
- Hook (or other way) to find out when another plugin is activated / installed
- Is there an earlier hook than login_head or login_enqueue_scripts?
- Gravity Forms plugin: How to use “gform_editor_js” action hook? [closed]
- Map a custom id to wordpress post id
- Calling plugin function inside custom plugin for onclick event
- Most efficient way to use classes to create admin pages using Settings API
- get current date + 90 days and checking every day
- Calculate price and display on woocommerce product single page under price (simple price, variable price) [closed]
- Basic Object Oriented plugin question
- Why do plugins often ask to add in to templates?
- How to get menu location in wp_update_nav_menu hook
- Turning on output buffering in a wordpress plugin
- How to use template_include hook with form submission?
- get_option / wp_localize_script Not Working in OOP Plug In
- Save user total active time after login in wordpress [closed]
- Advanced WordPress plugin activation detection
- wp_trash_post hook – problem with page updating if using wp_die
- is it possible to hook every page style?
- Comment Approve – Add custom function when comment is approved
- Add action to custom Function
- Hook on creating a menu entry?
- Prevent plug-in scripts on a specific template?
- using wp_footer hook in a plugin
- Plugin Hook When New Author Added
- Fail on admin_enqueue_scripts when I try it to upload a CSS file to my WordPress Plugin
- How to remove a hook written with $this?
- update_option_{$option} not working (do function after options are saved)
- Alternative Hook to the_content for Changing Background Color
- Unpublished Pages Failing To Appear On Custom Path
- add a hook of Woocommerce to a plugin but it only shows and doesn’t function properly
- ACF Fields are not showing up on Homepage
- Hooking into the HTML header container
- Hide WordPress Site URL from Source Code
- When/where would want to attach other classes to the base class in a WordPress plugin?
- Plugin function in child theme
- Edit plugin’s HTML output with Hooks
- {status}_{post_type} does not run correctly?
- Identify if the_post hook is being called from the admin post list
- Reorganization of namespaces
- Why can’t I shove an instance of a class into a variable from a do_action hook?
- Creating Custom Hook for my plugin
- accessibility of an object created in a plugin, from the header
- Passing a parameter to filter and action functions
- WordPress hook source
- Manually return false for function_exists
- How to `remove_action` from plugin
- Plugin Hook: Get posts
- Transition Post status not working
- functions.php conditional output for a single plugin
- How to make plugin work in each template in wordpress
- Suitable hook when creating, updating and deleting posts programmatically
- is_user_logged_in() undefined at shutdown in plugin context
- Is it possible to use Classes between WordPress plugins with separate namespaces?
- Remove H1 title in admin post edit screen
- Similar hook to ‘init’ for when plugin page loads