conflictingPlugins->getAllConflictingPlugins(); if ( empty( $conflictingPlugins ) ) { return; } $this->showNotice(); // Print the script to the footer. add_action( 'admin_footer', [ $this, 'printScript' ] ); } /** * Renders the notice. * * @since 4.5.1 * * @return void */ public function showNotice() { $type = ! empty( aioseo()->conflictingPlugins->getConflictingPlugins( 'seo' ) ) ? 'SEO' : 'sitemap'; ?>

', '' ), [ 'a' => [ 'href' => [], 'rel' => [], 'class' => [] ], 'strong' => [], ] ); ?>

conflictingPlugins->deactivateConflictingPlugins( [ 'seo', 'sitemap' ] ); return wp_send_json_success(); } }