wp_initialize_site_args WordPress Filter Hook

The wp_initialize_site_args hook is used to set up the initial site options when creating a new WordPress site. This hook is used to set the default values for the site_url, home_url, and admin_email options.

apply_filters( 'wp_initialize_site_args', array $args, WP_Site $site, WP_Network $network ) #

Filters the arguments for initializing a site.


Parameters

$args

(array)Arguments to modify the initialization behavior.

$site

(WP_Site)Site that is being initialized.

$network

(WP_Network)Network that the site belongs to.


Top ↑

Source

File: wp-includes/ms-site.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.1.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.