WPDev.one
Core Class

WP_Site_Icon

class WP_Site_Icon // Constructor: function Object() { [native code] }

Core class used to implement site icon functionality.

Methods 7 methods

Method / Return Description
__construct()
void

Registers actions and filters.

create_attachment_object()
array

Creates an attachment 'object'.

Parameters: $cropped: mixed, $parent_attachment_id: mixed
insert_attachment()
int

Inserts an attachment.

Parameters: $attachment: mixed, $file: mixed
additional_sizes()
array[]

Adds additional sizes to be made when creating the site icon images.

Parameters: $sizes: mixed
intermediate_image_sizes()
string[]

Adds Site Icon sizes to the array of image sizes on demand.

Parameters: $sizes: mixed
delete_attachment_data()
void

Deletes the Site Icon when the image file is deleted.

Parameters: $post_id: mixed
get_post_metadata()
(array

Adds custom image sizes when meta data for an image is requested, that happens to be used as Site Icon.

Parameters: $value: mixed, $post_id: mixed, $meta_key: mixed, $single: mixed

Properties

Property / Type Description
$min_size
mixed
public
No description available.
$page_crop
mixed
public
No description available.
$site_icon_sizes
mixed
public
No description available.

Class Information

Since Version
4.3.0
Source File
wp-admin/includes/class-wp-site-icon.php
Advertisement