if ( ! defined( 'ABSPATH' ) ) exit;

/*-----------------------------------------------------------------------------------*/
/* Start templatation Functions - Please refrain from editing this section
/*-----------------------------------------------------------------------------------*/

include_once get_template_directory(). '/inc/constants.php';   // Theme constants
include_once get_template_directory(). '/inc/init.php';        // Theme loading starts.

/*-----------------------------------------------------------------------------------*/
/* You can put your own functions below temporarily.
/*-----------------------------------------------------------------------------------*/
/**
 * Please note any content you write here will be overwritten with theme update.
 * Its recommended to use child theme instead if you want to write your own functions.
 */

/**
* Add read_private_posts capability to subscriber
* Note this is saves capability to the database on admin_init, so consider doing this once on theme/plugin activation
*/
add_action ('admin_init','add_sub_caps');
 
function add_sub_caps() {
    global $wp_roles;
    $role = get_role('subscriber');
    $role->add_cap('read_private_pages');
}






/*-----------------------------------------------------------------------------------*/
/* /End
/*-----------------------------------------------------------------------------------*/<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://orientalinfratrust.org/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://orientalinfratrust.org/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://orientalinfratrust.org/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://orientalinfratrust.org/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://orientalinfratrust.org/wp-sitemap-taxonomies-post_tag-1.xml</loc></sitemap><sitemap><loc>https://orientalinfratrust.org/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
