# elementor/3.24.0-dev2/modules/link-in-bio/module.php

Elementor Website Builder – more than just a page builder, version 3.24.0-dev2. 48 lines.

- Page: https://pluginprobe.com/plugins/elementor/3.24.0-dev2/code/modules/link-in-bio/module.php
- Raw: https://pluginprobe.com/plugins/elementor/3.24.0-dev2/raw/modules/link-in-bio/module.php
- Modified: 2024-08-25T13:59:38+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/elementor/3.24.0-dev2/code/modules/link-in-bio/module.php#L10-L20`.

```php
<?php

namespace Elementor\Modules\LinkInBio;

use Elementor\Core\Base\Module as BaseModule;

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

class Module extends BaseModule {

	const EXPERIMENT_NAME = 'link-in-bio';

	public function get_name(): string {
		return static::EXPERIMENT_NAME;
	}

	public function get_widgets(): array {
		return [
			'Link_In_Bio',
		];
	}

	public function __construct() {
		parent::__construct();

		add_action( 'elementor/frontend/after_register_styles', [ $this, 'register_styles' ] );
	}

	/**
	 * Register styles.
	 *
	 * At build time, Elementor compiles `/modules/link-in-bio/assets/scss/frontend.scss`
	 * to `/assets/css/widget-link-in-bio.min.css`.
	 *
	 * @return void
	 */
	public function register_styles() {
		wp_register_style(
			'widget-link-in-bio',
			$this->get_css_assets_url( 'widget-link-in-bio', null, true, true ),
			[],
			ELEMENTOR_VERSION
		);
	}
}

```
