HEX
Server: Apache
System: Linux webm013.cluster123.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: lesanew (165608)
PHP: 8.3.31
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/l/e/s/lesanew/www/wp-content/plugins/neobeat-core/inc/roles/admin/role-fields.php
<?php

if ( ! function_exists( 'neobeat_core_add_admin_user_options' ) ) {
	function neobeat_core_add_admin_user_options() {
		$qode_framework = qode_framework_get_framework_root();
		
		$page = $qode_framework->add_options_page(
			array(
				'scope' => array( 'administrator', 'author' ),
				'type'  => 'user',
				'title' => esc_html__( 'Social Networks', 'neobeat-core' ),
				'slug'  => 'admin-options',
			)
		);
		
		if ( $page ) {
			$page->add_field_element(
				array(
					'field_type'  => 'text',
					'name'        => 'qodef_user_facebook',
					'title'       => esc_html__( 'Facebook', 'neobeat-core' ),
					'description' => esc_html__( 'Enter user Facebook profile URL', 'neobeat-core' ),
				)
			);
			
			$page->add_field_element(
				array(
					'field_type'  => 'text',
					'name'        => 'qodef_user_instagram',
					'title'       => esc_html__( 'Instagram', 'neobeat-core' ),
					'description' => esc_html__( 'Enter user Instagram profile URL', 'neobeat-core' ),
				)
			);
			
			$page->add_field_element(
				array(
					'field_type'  => 'text',
					'name'        => 'qodef_user_twitter',
					'title'       => esc_html__( 'Twitter', 'neobeat-core' ),
					'description' => esc_html__( 'Enter user Twitter profile URL', 'neobeat-core' ),
				)
			);
			
			$page->add_field_element(
				array(
					'field_type'  => 'text',
					'name'        => 'qodef_user_linkedin',
					'title'       => esc_html__( 'LinkedIn', 'neobeat-core' ),
					'description' => esc_html__( 'Enter user LinkedIn profile URL', 'neobeat-core' ),
				)
			);
			
			$page->add_field_element(
				array(
					'field_type'  => 'text',
					'name'        => 'qodef_user_pinterest',
					'title'       => esc_html__( 'Pinterest', 'neobeat-core' ),
					'description' => esc_html__( 'Enter user Pinterest profile URL', 'neobeat-core' ),
				)
			);
			
			// Hook to include additional options after module options
			do_action( 'neobeat_core_action_after_admin_user_options_map', $page );
		}
	}
	
	add_action( 'neobeat_core_action_register_role_custom_fields', 'neobeat_core_add_admin_user_options' );
}