i got the solution for this
add_action('user_register', function ($user_id) {
$user_info = get_userdata($user_id);
$user_name = $user_info->user_login;
wp_insert_term($user_name, 'user1', array());
}, 10, 1);
Related Posts:
- Display Post co-authored in Author Page
- WordPress search query, how to modify the sql
- Three different queries on same page
- WP_Query | Help me create a search term with an ‘OR’ relation?
- Display certain amount of posts on taxonomy archive page
- WP_Query use for a filter with multiple Taxonomies and Terms
- conditional statement for custom taxonomy
- Get taxonomy terms only of the WP_Query current posts
- Rename “Portfolio” slug?
- Why is variable not working on custom sql query using wpdb?
- Custom page archive query by url var calling page twice on one of my custom queries?
- Create a hierarchical taxonomy list in WordPress
- How to get post’s current parent term ID?
- Fatal error: Call to a member function query() on a non-object
- Copy taxonomy terms from one post to another programmatically
- How to retrieve the data from the sever and displaying it in a page?
- How to filter custom taxonomy term name, slug, and description?
- Hierarchical taxonomy list with modificated term links
- Show the section only if custom taxonomy was chosen
- Exclude product attributes from taxonomy terms loop
- Query custom taxonomy for category including children
- WordPress SQL JOIN query
- Hi need update in my terms for other taxonomy
- How to change the author box selection on a post to a custom taxonomy
- WordPress: Export/Import Yoast meta title & description to custom taxonomy
- WP_Query – How to query all of post types categories
- Isn’t Returning Value While Using SELECT COUNT(*) FROM {$wpdb->prefix}
- Passing in MySQL prepare statement parameter separately throwing error
- Show related products by attribute based and certain conditions
- Display acf taxonomy attachment
- How to hide a child category and show his parent category
- ACF Taxonomy field values not select in backend
- ACF – Can’t get custom post type by taxonomy
- Search for single post by 2 tags
- Modify post image in full size
- Custom Taxonomy – fields
- How to return count of items found in SQL query
- Custom Taxonomy as Link
- Query specific posts per user selections from dropdown menus
- Changing regular db connection to $wpdb
- Using wp_query is it possible to orderby taxonomy?
- Why does “get_option” pull in the older value in options.php, rather than the newer value, on submission of a form?
- Filter and list posts of a custom taxonomy
- How do I get taxonomy terms by ID in a specific order
- Display related products with custom output
- How do I dynamically generate args for wp_query?
- Function get_queried_object() return NULL in custom taxonomy
- Get Current User Id Inside a Loop Returns 0 For a Shortcode
- Any possible way to make $wpdb->get_results() return anything else than array?
- How to query for posts with a null or blank post_name?
- WordPress pagination not working with search page
- WP Query with custom Shortcode
- Grab posts by multiple categories
- Add more button if more 8 items
- Different Category system needed for the Custom Post Type
- wp_query get the 2nd post
- How to add div blocks after certain set of post
- Wpdb->insert() doesn’t insert new row after the last one
- Convert a string into a decimal number for use in query
- How to get specific attribute from DB
- Increment paged on WP_Query
- Hide posts if user is added to it WP_query
- PHP -> SQL Query with Summing
- WordPress WP_Query without query GET parameters
- WPDB secure custom form
- Check in which custom taxonomy belongs and change the style
- displaying a fall back query if there’s nothing in the post-type category
- Query the links Database
- How to get post count of specific taxonomy that have store name & category
- wp_query with multiple arguments with AND
- Nested Queries of decreasing specificity
- Wrong pagination results, page counter resets when navigating
- Is it possible to order posts using multiple meta queries, i.e. show posts from first meta query, then the second?
- in_array not working on dev server but works on localhost
- WP query posts BUT show the most recent and one per author
- Define global custom post
- Categories does not show Block editor WordPress
- Filtering custom posts by using checkboxes for taxonomy in an ajax loop always gives server 500 error
- How to separate the taxonomies list from the form so that editing taxonmies is the same as pages and posts?
- 403 Forbidden WordPress Database Results
- Woocommerce Related Product by 2 taxonomy
- Add Custom Taxonomy into Script
- tax_query not working?
- Help on Wp_query to print an term
- Can’t get data from audio media
- WP_Query count of different meta key values [duplicate]
- How to display terms from two taxonomies in one php code?
- MySQL queries in WordPress
- At what point during a typical request does the $wpdb object become available?
- Select All not working in a WordPress search filter
- Fetching wpdb data from a php file seems to break?
- category & sub category order issues in wordpress
- Fix incorrect related posts code snippet
- wp_query on search results page showing all results every time
- posts_clauses drop ACF get_field function
- Custom taxonomy with page post type – WordPress
- Query posts by custom taxonomy slug in WP REST API?
- inner-wrap div pushing custom table far down on page
- How to sort custom sortable column by custom table value
- /page/2/ redirect to 404