ap_get_attach( mixed $_post = null )

Description #

Get attachment ids of a question or answer.

Parameters #

  • $_post
    mixed (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();
}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment