Deprecated

This function has been deprecated.

ap_theme_list()

Description #

Get all theme names from AnsPress themes directory.

Changelog #

VersionDescription
4.1.6Introduced.

Source #

File: includes/deprecated.php

function ap_theme_list() {
	$themes = array();
	$dirs   = array_filter( glob( ANSPRESS_THEME_DIR . '/*' ), 'is_dir' );
	foreach ( $dirs as $dir ) {
		$themes[ basename( $dir ) ] = basename( $dir );
	}

	return $themes;
}

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