ap_category_have_image( integer $term_id )

Description #

Check if category have featured image.

Parameters #

  • $term_id
    integer (Required) Term ID.

Changelog #

VersionDescription
2.0.2Introduced.

Source #

File: includes/taxo.php

function ap_category_have_image( $term_id ) {
	$option = get_term_meta( $term_id, 'ap_category', true );
	if ( ! empty( $option['image']['id'] ) ) {
		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