This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
Advanced_Product_Review::insert_attachment( string $file_handler, int $post_id )
Upload the file as media.
Parameters
- $file_handler
-
(Required) The file name.
- $post_id
-
(Required) The post ID.
Return
(false|int|WP_Error)
Source
File: includes/modules/woocommerce_booster/advanced_product_review/advanced_product_review.php
Expand full source code Collapse full source code View on Github
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |