• File: admin-functions.php
  • Full Path: /home/dealkatnwc/www/wp-content/plugins/userpro/addons/emd/admin/admin-functions.php
  • Date Modified: 02/11/2019 5:43 PM
  • File size: 615 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php

	/* Check page exists */
	function userpro_ed_admin_page_exists($template) {
		$pages = get_option('userpro_ed_pages');
		if ($template=='view') $template = 'profile';
		if (isset($pages[$template]))
			$page_id = $pages[$template];
			$page_data = get_page($page_id);
			if($page_data->post_status == 'publish'){
				return true;
			}
		return false;
	}

	/* Get page link for social */
	function userpro_ed_admin_link($template){
		$pages = get_option('userpro_ed_pages');
		if ($template=='view') $template = 'profile';
		if (isset($pages[$template])){
			return get_page_link( $pages[$template] );
		}
	}