-
<static> frame()
-
The Featured Image workflow
This:
- Source:
-
Returns:
A media workflow.
-
Type
-
wp.media.view.MediaFrame.Select
-
<static> get()
-
Get the featured image post ID
- Source:
-
Returns:
-
Type
-
wp.media.view.settings.post.featuredImageId
|
number
-
<static> init()
-
Open the content media manager to the 'featured image' tab when
the post thumbnail is clicked.
Update the featured image id when the 'remove' link is clicked.
- Source:
-
-
<static> remove()
-
Remove the featured image id, save the post thumbnail data and
set the HTML in the post meta box to no featured image.
- Source:
-
-
<static> select()
-
'select' callback for Featured Image workflow, triggered when
the 'Set Featured Image' button is clicked in the media modal.
This:
- Source:
-
-
<static> set(id)
-
Sets the featured image ID property and sets the HTML in the post meta box to the new featured image.
Parameters:
Name |
Type |
Description |
id |
number
|
The post ID of the featured image, or -1 to unset it. |
- Source:
-