register_meta_args WordPress Filter Hook

The register_meta_args hook allows developers to register custom metadata for their Wordpress sites. This metadata can be used to provide information about the site, its content, and its users. By registering metadata, developers can make their site more informative and easier to use.

apply_filters( 'register_meta_args', array $args, array $defaults, string $object_type, string $meta_key ) #

Filters the registration arguments when registering meta.


Parameters

$args

(array)Array of meta registration arguments.

$defaults

(array)Array of default arguments.

$object_type

(string)Type of object metadata is for. Accepts 'post', 'comment', 'term', 'user', or any other object type with an associated meta table.

$meta_key

(string)Meta key.


Top ↑

Source

File: wp-includes/meta.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.6.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.