ap_have_attach( mixed $_post = null )

Description #

Check if question or answer have attachemnts.

Parameters #

  • $_post
    mixed (Optional) Post. Default value: null

Source #

File: includes/qaquery.php

function ap_have_attach( $_post = null ) {
	$_post = ap_get_post( $_post );
	if ( ! empty( $_post->attach ) ) {
		return true;
	}
	return false;
}

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