label ) || ! is_taxonomy_viewable( $taxObject ) ) { unset( $taxonomies[ $taxObject->name ] ); } } foreach ( $taxonomies as $taxonomy ) { add_action( $taxonomy->name . '_edit_form', [ $this, 'addTaxonomyUpsell' ] ); add_action( 'after-' . $taxonomy->name . '-table', [ $this, 'addTaxonomyUpsell' ] ); } } } /** * Add Taxonomy Upsell. * * Renders the real post-settings metabox mount blurred out, with the floating CTA overlay on top. * The Vue app mounts on #aioseo-term-settings-metabox using the stub currentPost data populated * by {@see \AIOSEO\Plugin\Lite\Traits\Helpers\Vue::setTermData()}. * * @since 4.0.0 * @version 4.9.8 Replaced the stale static HTML mock with the real Vue post-settings metabox mount. * * @return void */ public function addTaxonomyUpsell() { $screen = aioseo()->helpers->getCurrentScreen(); if ( ! isset( $screen->parent_base ) || 'edit' !== $screen->parent_base || empty( $screen->taxonomy ) ) { return; } $utmUrl = aioseo()->helpers->utmUrl( AIOSEO_MARKETING_URL . 'lite-upgrade/', 'taxonomies-upsell', 'features=[]=taxonomies', false ); ?>