_manager->enqueue_script( self::ASSETS_NAME ); $this->asset_manager->enqueue_style( self::ASSETS_NAME ); $this->asset_manager->localize_script( self::ASSETS_NAME, 'wpseoScriptData', $this->get_script_data() ); } /** * Creates the script data. * * @return array>> The script data. */ private function get_script_data(): array { return [ 'addOns' => $this->add_ons_collector->to_array(), 'linkParams' => $this->short_link_helper->get_query_params(), 'preferences' => [ 'isRtl' => \is_rtl(), ], 'currentPromotions' => $this->promotion_manager->get_current_promotions(), ]; } /** * Removes all current WP notices. * * @return void */ public function remove_notices() { \remove_all_actions( 'admin_notices' ); \remove_all_actions( 'user_admin_notices' ); \remove_all_actions( 'network_admin_notices' ); \remove_all_actions( 'all_admin_notices' ); } }
Warning: Cannot modify header information - headers already sent by (output started at /htdocs/wp-content/plugins/wordpress-seo/src/plans/user-interface/plans-page-integration.php:1) in /htdocs/wp-includes/pluggable.php on line 1450

Warning: Cannot modify header information - headers already sent by (output started at /htdocs/wp-content/plugins/wordpress-seo/src/plans/user-interface/plans-page-integration.php:1) in /htdocs/wp-includes/pluggable.php on line 1453