# bbp-core/1.2.2/includes/admin/Pro_Widget_Map.php

Forumax – AI Powered Advanced Community Forum Plugin, version 1.2.2. 45 lines.

- Page: https://pluginprobe.com/plugins/bbp-core/1.2.2/code/includes/admin/Pro_Widget_Map.php
- Raw: https://pluginprobe.com/plugins/bbp-core/1.2.2/raw/includes/admin/Pro_Widget_Map.php
- Modified: 2024-03-24T17:05:26+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/bbp-core/1.2.2/code/includes/admin/Pro_Widget_Map.php#L10-L20`.

```php
<?php
namespace admin;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
} // Exit if accessed directly

class Pro_Widget_Map {

	public function get_pro_widget_map() {

		$arr_obj = Pro_Widget_Service::get_widget_settings(
			function ( $settings ) {
				$core_widgets = $settings['settings_fields']['bbpc_active_modules'];

				$arr = [];

				foreach ( $core_widgets as $key => $widget ) {

					if ( 'pro' == $widget['widget_type'] ) {

						$ar = [
							'categories'    => [ 'bbp-core-pro' ],
							'name'          => $widget['name'],
							'title'         => $widget['label'],
							'icon'          => 'bbpc_icon_' . $widget['name'],
							'action_button' => [
								'classes' => [ 'elementor-button', 'elementor-button-success' ],
								'text'    => esc_html__( 'See it in Action', 'bbp-core' ),
								'url'     => esc_url( $widget['demo_url'] )
							],
						];

						array_push( $arr, $ar );
					}
				}

				return $arr;
			}
		);

		return $arr_obj;
	}
}

```
