You didn’t post any code, including the name of custom post type that Ultimate Member is creating, but this is the general query for your request:
function copy_my_tags(){
// Get every terms used by Ultimate Member
$terms = get_terms( array(
'taxonomy' => 'custom_tax',
'hide_empty' => false,
) );
// Run a loop and create tags based on custom terms
foreach ($terms as $term) {
// Check if the tag already exists
if(!term_exists($term , 'post_tag')){
wp_insert_term ( array(
$term,
'post_tag',
);
}
}
}
add_action('init','copy_my_tags');
Add this code to your theme’s functions.php file, and load any page. Once you load WordPress, the tags will be copied. Then you should delete this code to prevent it from running each time a page is loaded.
Related Posts:
- On the WordPress Admin section how do I link to submenu pages created for a plugin?
- Is there a way to list tags order by post_meta field
- Is there a Filter that I can use to filter the tags before they are inserted in to the database?
- Is there a plugin that will allow a tag cloud to be created from any mysql field?
- Search the product by tag or category not working
- get_the_tags with separator control?
- add_action pre_term_description vs. pre_category_description
- Add location tag to wordpress posts
- Determine if term is Category or Tag
- Remove tag from all posts when publishing new post
- Dynamically getting tags in post edit screen
- Add a new tag based on the category name in the publish event
- edit-tags.php in plugin admin menu hides when is the active page
- Access WordPress Tag Function From Modal
- get_the_tags($ID) is empty during publish_post callback
- Add self-closing shortcode button to TinyMCE in WP 4.6
- WordPress Hook for user register
- Must-use plugins autoloader: How to use get_plugins() correctly?
- Changing upload directory for plugin uploads only
- Upload file to remote storage
- How do I conditionally enqueue script for CPT single post type with plugin?
- Is it possible to remove next-post / previous-post with out creating a custom template?
- wp_localize_script $handle
- Escaping built-in WP function return strings
- Custom Rewriting to Plugin with Parameters
- Add rewrite rule in plugin: with .htaccess in plugin folder or using WordPress functions
- Using preg_replace to clean widget output HTML
- Removing rules from .htaccess
- What is the best way to provide plugin users with a way to customized the styles
- Mapping multiple URLs to same page
- Add Products to Woocommerce through WP API
- How do I only load js on the post-new.php and post.php pages in admin?
- Screenshot are not showing up on plugin page
- How to not let a user with a new role edit users that have administrator role?
- Modifying values with add_action to be sent to db
- Options API – Validation Callback $input is NULL
- how to use preg_replace for wordpress video?
- Configuring WordPress Auth Cookie Expiration
- How to display a message about updates in the plugin list
- How to save WP widget instances and options
- Function Get User Object By Username?
- Loading jQuery and jQuery plugin script files correctly [duplicate]
- How to use radio buttons in WordPress plugin options using register settings?
- manage_posts_custom_column, showing serial number using increment in loop
- SQL query for custom taxonomy slugs
- What should happen when a WordPress Plugin is activated across the network (Network Wide Activation)
- Send push when new post is published in a certain category
- How can we display product price $104 on the cart while the credit card payment method is checked?
- Storing data in wordpress database from ajax call from different website
- Prevent invalid or empty values from being saved to the database and retain the form field values upon error
- Translation per IP location [closed]
- Hide shortcodes “code” when using the “editor” the same as wordpress do with “gallery”
- wp E-commerce featured product plugin with muliple option?
- How to test a WordPress plugin in real time
- How to Trigger WP CRON at Local Timestamp?
- Problem with saving checkbox values with WordPress Widget API
- How to Control CSS of Admin On Creating only a Specific Custom Post Type
- Force download file from plugin (change output http headers)
- How to get all product in the woo-commerce? [closed]
- Check user’s role and store in variable
- What’s the hook for filtering every texts of site?
- Undefined variable’s error when expected to have passed the content of variable [closed]
- Google credentials and redirect URI for Google OAuth2 in a WordPress plugin, questions
- How to add plugin options in wp editor page
- How to add a panel/box/widget/are/screen to the right side of edit post/page confusion
- Service Worker Uncaught (in promise) DOMException
- Issue with plugin sub menu and pages
- How can I programmatically change a MySql variable (foreign_keys_check)?
- Problem with display data from get_option
- WordPress Plugin Boilerplate: Addition of 3rd party scripts and styles [closed]
- How to format custom fields when editing an attachment?
- Screenshots on plugin page taken old [closed]
- Get Posts by IDs (optionally)
- How do I duplicate a single post, with all its properties, and save it as a different post?
- Why doesn’t my Table get created?
- Extract Information from post content (using regex?)
- Using jQuery prepend() with file include
- want to show CMB2 metabox on woocommerce product data tab
- Customise Grouped Product display in Woocommerce with custom column
- Add parameters to 3rd party callback function
- Ajax action has 200 status but response of No response data available for this request
- Google Web Core Vitals – management, how to in wordpress and advice
- Hiding the WordPress login and password fields from login page
- Adding customs fields on each product on the cart
- WordPress how do I echo SUM from a column of a MySQL table by user id AND type_operation
- Buddypress: adding a new tab direct user to their author page
- Why would one specify multiple arguments when using get_previous_posts_link() which takes only one parameter?
- WC_Geolocation not found inside plugin
- Set widget icon in Customizer?
- I have a plugin where in I have to change the title of the page dynamically by sending parameter to the_title filter
- How can I map a specific URL pattern to a plugin for processing
- Issue on Getting Images URL of the Post Gallery
- What happens when you create/edit a menu
- Change the class of wordpress menu
- WordPress.org how to force expire Cached Banner-772×250 from my Plugin page
- What is the Timeline for the Active Version Pie Chart in the Repository?
- How to change url’s in WordPress when changing domain [duplicate]
- Email verification feature in wordpress social login plugin
- Is wordpress plugin development active? [closed]
- Advanced Custom Fields conflicting with custom plugin when saving custom field