Uses
| Uses | Description |
|---|---|
| wp-includes/plugin.php: add_action() | Hooks a function on to a specific action. |
| wp-includes/plugin.php: add_filter() | Hook a function or method to a specific filter action. |
Registers actions and filters.
File: wp-admin/includes/class-wp-site-icon.php
public function __construct() {
add_action( 'delete_attachment', array( $this, 'delete_attachment_data' ) );
add_filter( 'get_post_metadata', array( $this, 'get_post_metadata' ), 10, 4 );
} | Version | Description |
|---|---|
| 4.3.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_site_icon/__construct