ClassesBigCommerceMeta_BoxesPost Meta Box

Post_Meta_Box

Methods

register

public register(string $post_type = '', \WP_Post $post = null): void

Parameters:

ParameterTypeDescription
$post_typestring
$post\WP_Post

save_post

public save_post(int $post_id, \WP_Post $post): void
  • This method is abstract.

Parameters:

ParameterTypeDescription
$post_idint
$post\WP_Post

get_post_types

protected get_post_types(): string[]
  • This method is abstract.

Return Value:

The post types to which this metabox applies


Inherited methods

register

public register(): void

get_name

protected get_name(): string
  • This method is abstract.

Return Value:

The unique identifier for the metabox


get_title

protected get_title(): string
  • This method is abstract.

Return Value:

The title of the metabox


render

Render the metabox contents

public render(object $object): void
  • This method is abstract.

Parameters:

ParameterTypeDescription
$objectobject

get_screen

protected get_screen(): string|array|null

Return Value:

The screens on which to display the metabox


get_context

protected get_context(): string

Return Value:

One of ‘normal’, ‘side’, or ‘advanced’


get_priority

protected get_priority(): string

Return Value:

One of ‘high’, ‘core’, ‘default’, ‘low’


get_callback_args

protected get_callback_args(): null|array

Return Value:

Additional args to pass to the render callback



Automatically generated on 2025-01-21