Try hooking your save function to user_register, because it could be that the $user_id you have in your function doesn’t exists yet so there’s no user to attach the meta to.
Related Posts:
- How would I correctly implement a new if statement in a child functions file?
- get_template_directory_uri pointing to parent theme not child theme
- How to display custom field in woocommerce orders in admin panel?
- Child theme – Overriding ‘require_once’ in functions.php
- Redeclare a function in a child theme
- How to override a function when isn’t at functions.php
- One Child Functions.php for Multiple Child Themes
- Removing custom background and header feature in child theme
- How to override function in functions.php of parent theme?
- override parent theme configuration in child functions.php
- syntax for remove_filter in parent theme with class
- Is it possible to override this function/class in a child theme?
- Overriding core functions in child theme
- Override parent theme function that is not hooked or in the functions.php file
- Function in Child Theme not overriding Parent Theme function [duplicate]
- Child theme – copied some files from parent to child website still uses parent files
- add sidebar area to header of child theme
- Assign category using custom field?
- Function to Download External Images to My Site
- Overriding methods in a child theme
- Should I ask a theme developer to use locate_template rather than require_once
- Using the child theme functions.php to change the customizer.php on parent theme
- Child theme functions.php not executing
- Make “sidebar template” the default template for new pages
- override parent theme configuration in child functions.php
- How to use max and min values of custom fields
- wp_enqueue JavaScript in child-theme (ReferenceError) using Search & Go
- Twenty Eleven Child theme error when attempting to use a rewritten function
- Customizer field value into functions.php variable
- Best practice when altering a parent theme function inside a child theme?
- How to make child theme inherit parent custom theme options [closed]
- Auto delete post if certain custom field data is empty
- Creating a child theme – functions.php code issue
- Overwriting Parent Theme’s Image Sizes
- Twentyten Child Theme: header images display messed up in admin panel
- Add other social networks to TwentyNineteen_SVG_Icons class in child theme?
- Why is functions.php file in child not initializing and over-writing parent?
- Removing custom meta data
- Please Explain the Importing Process of Multiple Stylesheets for Child Themes
- Custom Attachment Caption Fields
- Reuse variable in hook callback
- Add custom function to a theme with child theme’s functions.php
- Pagination in relation to archive.php
- Skeleton Child Theme Add Icon Bar to Header Flex Grid
- How to load parent theme template parts in child theme
- ACF not showing
- Running script based on Category
- How to retrieve the values of a sub-field in the first and last row of an (ACF) repeater inside function?
- How would I go about replacing this function in my child theme located in inc/template-tags.php
- Enqueuing latest version of jQuery into a child theme returns a blank screen
- Not all CSS elements transferring via parent to child?
- Custom Behavior when Adding New Custom Post Type in Dashboard
- Got white blank page after copying the functions.php to child theme
- Randomizing wp_tag_cloud() in child theme
- Add back in child theme what the parent theme removed with remove_action
- Where do I go to edit this area? [closed]
- Parent theme styles overriding child theme CSS [closed]
- Insert Address fields into function
- Child theme function.php causes fatal error
- Is it possible to use add_filter in an included file in the child theme’s functions.php?
- How to remove admin footer text from inside child theme?
- How to store a number (coming from cookie) into query vars for later usage in other filters?
- How to overwrite template.php file
- How add body_class from wp_termmeta
- remove_action not working, even after changing priority [duplicate]
- Solution dealing with Child Theme / Parent theme functions
- How to use parent theme functions in child theme functions.php file?
- Removing parent theme CSS without editing parent theme
- How to override this theme function in child theme
- Fill empty custom field with other custom field
- Change custom featured image size in twentythirteen child theme
- Perform function on publish AND save (not just save)
- Overwriting TwentyTwelve template file with child theme template, but lower in the hierarchy
- Looking for Functions File that doesn’t Exist
- How to change text color depending on the number value (Using javascript)
- Include widget file in functions.php of child theme
- Add Javascript code to functions.php childtheme
- How to add javascript code into Divi child theme?
- Replace theme function
- Hide empty custom field
- Will dequeueing in child theme functions.php file prevent Google Fonts from loading?
- Including admin-options.php file in Child Themes
- uninstall a theme programmaticlly
- How to echo the translated custom field?
- Adding a meta box fields to child theme options page
- How to add meta fields to custom taxonomy add/edit page?
- Dynamically generated Navigation Diagram using Custom Fields
- Update add_image_size
- Adding custom field in menu options [duplicate]
- Load a Child Theme’s style.css just before the closing tag
- Blank child theme – functions.php problem
- unregister_sidebar in child theme not working
- How to display data from custom fields in my custom shortcode?
- Add custom fields after post/page title
- Child Theme not working – CSS gone
- Adding and updating repeating custom field meta data
- How do I make my child theme’s CSS update when I save it?
- How to fix enqueue_styles error for a twenty-seventeen childtheme
- Change Post status based on custom field date +1 day
- Child theme’s functions.php not being read (child theme’s autoload.php not being run)