array( 'cleared' => __( 'Cleared', 'automatic-youtube-gallery' ) ) ) ); } /** * Add settings page link on the plugins menu. * * @since 1.0.0 * @param array $links An array of plugin action links. * @return string $links Array of filtered plugin action links. */ public function plugin_action_links( $links ) { $settings_link = sprintf( '%s', admin_url( 'admin.php?page=automatic-youtube-gallery' ), __( 'Settings', 'automatic-youtube-gallery' ) ); array_unshift( $links, $settings_link ); return $links; } /** * Display admin notice. * * @since 1.0.0 */ public function admin_notice() { $screen = get_current_screen(); $post_type = $screen->post_type; if ( 'post' == $post_type || 'page' == $post_type ) { return; } if ( false == get_option( 'ayg_admin_notice_dismissed' ) ) : ?>