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
- Why doesn’t PhotoSmash plugin play well with wp_query?
- How to add custom meta to ‘pre_get_terms’?
- how to get serialized post meta
- get_the_ID() in the footer returns wrong value
- Trouble inputting variable into WP query
- the_posts_pagination() not working in wpquery
- Ajax filter button display all posts
- How to override url params with rewrite rules vars?
- Use $wpdb or other PHP script method to find/replace in WP database
- Different options per post type in WP_Query
- WP_Query: getting posts where custom field exists
- How to show meta value code HTML after x paragraph
- How can I add a new row in a separate database when someone registers via WordPress?
- Form search query – displaying ACF “Post Object” field as results
- WP Job Manager plugin – Listing only the twelve job categories on frontpage order by jobs they have
- Add class to website based on post taxonomy
- WP_Query | IF within $args array | Help me only add specific arguments if the argument is not blank
- Use get() method to grab all categories and output inside another method
- Convert a string into a decimal number for use in query
- How to display SQL query that ran in WC_Order_Query?
- get_the_ID() doesnt work
- How to get specific attribute from DB
- Basic wpdb update question
- Array to string conversion on array_map
- Store metakey value as an array
- Increment paged on WP_Query
- Target post_date_gmt if it’s empty or not set
- Hide posts if user is added to it WP_query
- I can’t update my data through $wpdb
- wpdb Cannot Update column in Database
- Custom route and query
- Output: “Array”
- change the default order of posts only for specific categories
- How to use mysql LIKE with wpdb?
- Getting posts to exclude from array
- Get all posts as an array ID => Name
- PHP -> SQL Query with Summing
- How to hide posts of a specific custom category in WordPress?
- Delete database record using plugin from admin panel
- Post not populating for custom post type based on category selection
- Passing an array into WP_Query as a variable
- Custom query vars filters problem with pagination
- Custom post type permalinks do not appear using the link functions
- Query custom post types & Taxonomies and list them in a table on a page
- WordPress meta_query >= &
- Cannot access $wpdb, comes back NULL
- Change header on pages displaying taxonomy items
- extract serialized array to use for wp-query
- Custom post type and custom taxonomy 404 on page 2
- Order BY Most Liked And Published Between Previous Week Monday And Next Week Monday
- Listing titles and custom fields of entries within subcategories
- WP_Query multiple post results
- fetch woocommerce product with custom taxonomy
- Wpdb get->results to out the the month from the db
- Modify main query before it run without pre_get_post
- WordPress WP_Query without query GET parameters
- How do I prepare strings for insertions as values into a MySQL table?
- Sort posts in a specific way
- Do not duplicate posts with multiple categories in multiple loops
- Infinite Loop – WP_Query