开发者 | denisco |
---|---|
更新时间 | 2022年10月3日 06:41 |
捐献地址: | 去捐款 |
PHP版本: | 5.6 及以上 |
WordPress版本: | 6.0 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
[dco_ca]
shortcode. You can also filter by type. See FAQ for details.dco-comment-attachment
folder to the /wp-content/plugins/
directoryDCO Comment Attachment tested with:
Without attributes specified, the [dco_ca]
shortcode will display all attachments attached to current post.
You can filter attachments using the type
attribute. By default it is all
. Also supported: image
, video
, audio
and misc
.
You can specify one value [dco_ca type="image"]
or multiple values, separated by commas [dco_ca type="video,audio"]
.
You can also display attachments from the comments of another post using the post_id
attribute.
For example, [dco_ca post_id="45"]
, where 45
is the ID of the specific post.
You can also combine these attributes. For example, [dco_ca post_id="45" type="image"]
will display all images attached to comments to the post with ID 45.
[dco_ca]
shortcode for display attachments attached to comments (see FAQ for details).dco_ca_force_download_misc_attachments
filter for force download files instead of open.dco_ca_attach_to_post
filter instead.dco_ca_get_attachment_preview
and dco_ca_get_attachment_preview_image
.dco_ca_form_element_autoembed_links_notification
is deprecated. Use dco_ca_form_element_autoembed_links
instead.autoembed-links-notification
for form_element function is deprecated. Use autoembed-links
instead.dco_ca_disable_display_attachment
hook. Now you can display attachment in custom place with add_filter('dco_ca_disable_display_attachment', '__return_true');
filter and dco_ca()->display_attachment()
function.dco_ca_disable_attachment_field
hook for disable the upload attachment field.