esc_url_raw( rest_url() ), 'nonce' => wp_create_nonce( 'wp_rest' ), 'version' => advanced_plugin_version(), 'blockSettings' => get_option( 'advanced-block-settings' ), ) ); } /** * Add settings screen. * * @return void */ public function settings() { echo '
'; } /** * Add Welcome screen. * * @return void */ public function welcome_screen() { wp_enqueue_style( 'advanced-blocks-welcome', plugins_url( 'settings/css/settings.css', dirname( __FILE__ ) ), array(), filemtime( plugin_dir_path( __DIR__ ) . 'settings/css/settings.css' ) ); $gb = admin_url( 'post-new.php?gutenberg-demo&advanced_notice=true' ); echo '

Welcome to advanced Blocks

Thank you for installing advanced Blocks. Now just one more important step to initialize advanced Blocks settings page.

Don’t worry it’s really easy, you just need to visit Gutenberg post edit screen and we’ll do the rest, sounds easy right?

Let’s begin
'; } } new advanced_blocks_Settings();