public function load() {
		if ( ! is_admin() ) {
			_doing_it_wrong(
				__METHOD__,
				'It should only be called on admin pages.',
				esc_html( Icon_Picker::VERSION )
			);

			return;
		}

		if ( ! did_action( 'icon_picker_loader_init' ) ) {
			_doing_it_wrong(
				__METHOD__,
				sprintf(
					'It should not be called until the %s hook.',
					'<code>icon_picker_loader_init</code>'
				),
				esc_html( Icon_Picker::VERSION )
			);

			return;
		}

		add_action( 'admin_enqueue_scripts', array( $this, '_enqueue_assets' ) );
		add_action( 'print_media_templates', array( $this, '_media_templates' ) );
	}
public function load() {
		if ( ! is_admin() ) {
			_doing_it_wrong(
				__METHOD__,
				'It should only be called on admin pages.',
				esc_html( Icon_Picker::VERSION )
			);

			return;
		}

		if ( ! did_action( 'icon_picker_loader_init' ) ) {
			_doing_it_wrong(
				__METHOD__,
				sprintf(
					'It should not be called until the %s hook.',
					'<code>icon_picker_loader_init</code>'
				),
				esc_html( Icon_Picker::VERSION )
			);

			return;
		}

		add_action( 'admin_enqueue_scripts', array( $this, '_enqueue_assets' ) );
		add_action( 'print_media_templates', array( $this, '_media_templates' ) );
	}
public function load ( ) { if ( ! is_admin ( ) ) { _doing_it_wrong ( __METHOD__ , 'It should only be called on admin pages.' , esc_html ( Icon_Picker :: VERSION ) ) ; return ; } if ( ! did_action ( 'icon_picker_loader_init' ) ) { _doing_it_wrong ( __METHOD__ , sprintf ( 'It should not be called until the %s hook.' , '<code>icon_picker_loader_init</code>' ) , esc_html ( Icon_Picker :: VERSION ) ) ; return ; } add_action ( 'admin_enqueue_scripts' , array ( $ this , '_enqueue_assets' ) ) ; add_action ( 'print_media_templates' , array ( $ this , '_media_templates' ) ) ; }
Load admin functionalities

@since  0.1.0
@return void
Load admin functionalities