apply_filters( ‘register_meta_args’, array $args, array $defaults, string $object_type, string $meta_key )

In this article

Filters the registration arguments when registering meta.

Parameters

$argsarray
Array of meta registration arguments.
$defaultsarray
Array of default arguments.
$object_typestring
Type of object metadata is for. Accepts 'post', 'comment', 'term', 'user', or any other object type with an associated meta table.
$meta_keystring
Meta key.

Source

$args = apply_filters( 'register_meta_args', $args, $defaults, $object_type, $meta_key );

Changelog

VersionDescription
4.6.0Introduced.

User Contributed Notes

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