$_ * * @param array $_ - Widget settings. * @param \WP_Widget $widget - Widget class. * * @return void */ public function widget_documentation( array $_, \WP_Widget $widget ) { ?>

$actions - Array of actions and their link. * * @return array */ public function plugin_action_links( array $actions ): array { $actions['documentation'] = \sprintf( '%3$s', $this->get_documentation_url(), '?utm_source=wp-plugins&utm_campaign=documentation&utm_medium=wp-dash', __( 'Documentation', 'advanced-sidebar-menu' ) ); return $actions; } /** * Retrieve a template file from either the theme's 'advanced-sidebar-menu' directory * or this plugin's view folder if one does not exist. * * @since 6.0.0 * * @phpstan-param 'category_list.php'|'page_list.php' $file_name * * @formatter:off * * @param string $file_name - Name of template file with the PHP extension. * @param string $comment - Optional. If provided, will be populated with a * comment indicating which template was loaded. * * @formatter:on * * @return string */ public function get_template_part( string $file_name, string &$comment = '' ): string { $file = locate_template( 'advanced-sidebar-menu/' . $file_name ); $comments = apply_filters( 'advanced-sidebar-menu/core/include-template-parts-comments', true, $file_name ); if ( '' === $file ) { if ( $comments ) { $comment = ''; } $file = ADVANCED_SIDEBAR_MENU_DIR . 'views/' . $file_name; } elseif ( $comments ) { $comment = ''; } return (string) apply_filters( 'advanced-sidebar-menu/core/get-template-part', $file, $file_name, $this ); } /** * Display a dismissible notice above widget forms to inform * users the widget may be transformed into a block. * * Notice is rendered via React. * * @since 9.2.0 * * @see js/src/modules/widgets.tsx * * @internal * * @return void */ public function transform_notice() { ?>