ap_get_attach( mixed $_post = null )
Description #
Get attachment ids of a question or answer.
Parameters #
- $_postmixed (Optional) Post. Default value: null
Source #
File: includes/qaquery.php
function ap_get_attach( $_post = null ) { $_post = ap_get_post( $_post ); if ( ! empty( $_post->attach ) ) { return explode( ',', $_post->attach ); } return array(); }
Expand full source code Collapse full source code View on GitHub: includes/qaquery.php:670
Add your comment