BigCommerce for WordPress
  • Hooks
  • Classes
  • Methods
  • Functions
  • About
Skip to content
Filter by type:
Home / Reference / Classes / Account_Profile

Account_Profile

Summary

Class Account_Profile


Description

A block to display the current user’s account profile


Source

File: src/BigCommerce/Editor/Gutenberg/Blocks/Account_Profile.php

class Account_Profile extends Shortcode_Block {
	const NAME = 'bigcommerce/account-profile';

	protected $icon = 'id';
	protected $shortcode = Shortcodes\Account_Profile::NAME;

	protected function title() {
		return __( 'BigCommerce Account Profile', 'bigcommerce' );
	}

	protected function html_title() {
		return __( 'My Account', 'bigcommerce' );
	}

	protected function html_image() {
		return $this->image_url( 'Gutenberg-Block_My-Account.png' );
	}

	protected function keywords() {
		$keywords = parent::keywords();
		$keywords[] = __( 'user', 'bigcommerce' );
		$keywords[] = __( 'account', 'bigcommerce' );
		return $keywords;
	}
}

Expand full source code Collapse full source code


User Contributed Notes

Have a note or feedback to contribute?

You must log in before being able to contribute a note or feedback.

BigCommerce for WordPress is made by: