ap_main_pages_id()

Description #

Return post IDs of main pages.

Changelog #

VersionDescription
4.1.0Introduced.

Source #

File: includes/functions.php

function ap_main_pages_id() {
	$main_pages = array_keys( ap_main_pages() );
	$pages_id   = array();

	foreach ( $main_pages as $slug ) {
		$pages_id[ $slug ] = ap_opt( $slug );
	}

	return $pages_id;
}

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