helpers->getPublicTaxonomies(); foreach ( $taxonomies as $taxonomy ) { add_action( $taxonomy['name'] . '_edit_form', [ $this, 'addTaxonomyUpsell' ] ); add_action( $taxonomy['name'] . '_add_form', [ $this, 'addTaxonomyUpsell' ] ); } } } /** * Add Taxonomy Upsell * * @since 4.0.0 * * @return void */ public function addTaxonomyUpsell() { $allowedScreens = [ 'edit-category', 'edit-post_tag', 'edit-product_cat', 'edit-product_tag', ]; $screen = get_current_screen(); if ( ! in_array( $screen->id, $allowedScreens, true ) ) { return; } // phpcs:disable Generic.Files.LineLength.MaxExceeded echo '

AIOSEO Settings

Snippet Preview
http://aioseo-v4.local/category/test-category-1
Category Title
Click on tags below to insert variables into your title.
Category Title
Separator
Site Title
View all tags →


Category Description
Category Description
The description of the current category or the description of the first category attached to the current page/post.
Category Title
Category Title
The title of the current category or the title of the first category attached to the current page/post.
Current Date
Current Date
The current date, formatted based on your locale.
Current Day
Current Day
The current day of the month, formatted based on your locale.
Current Month
Current Month
The current month, formatted based on your locale.
Current Year
Current Year
The current year, formatted based on your locale.
Custom Field
Custom Field
A custom field from the current page/post.
Permalink
Permalink
The permalink for the current page/post.
Separator
Separator
The separator defined in the search appearance settings.
Site Title
Site Title
Your site title.
Tagline
Tagline
The tagline for your site, set in the general settings.
Meta Description
Click on tags below to insert variables into your meta description.
Category Title
Separator
Category Description
View all tags →


Category Description
Category Description
The description of the current category or the description of the first category attached to the current page/post.
Category Title
Category Title
The title of the current category or the title of the first category attached to the current page/post.
Current Date
Current Date
The current date, formatted based on your locale.
Current Day
Current Day
The current day of the month, formatted based on your locale.
Current Month
Current Month
The current month, formatted based on your locale.
Current Year
Current Year
The current year, formatted based on your locale.
Custom Field
Custom Field
A custom field from the current page/post.
Permalink
Permalink
The permalink for the current page/post.
Separator
Separator
The separator defined in the search appearance settings.
Site Title
Site Title
Your site title.
Tagline
Tagline
The tagline for your site, set in the general settings.
This feature is only available for licensed AIOSEO Pro users.
AIOSEO Pro allows you to set custom SEO titles and descriptions for taxonomies as well as social meta and Open Graph data for search engines.
Social Meta
SEO Title/Description
Upgrade to Pro and Unlock Custom Taxonomies Learn more about all features
'; // phpcs:enable Generic.Files.LineLength.MaxExceeded } }