/** * Include the required files * * @since 1.1 * @return void */ function includes() { if (cpm_is_pro()) { include_once CPM_PATH . '/includes/pro/loader.php'; } else { include_once CPM_PATH . '/includes/free/loader.php'; } include_once CPM_PATH . '/includes/urls.php'; include_once CPM_PATH . '/includes/html.php'; include_once CPM_PATH . '/includes/shortcodes.php'; }
function cpm_user_can_access_file($project_id, $section, $is_private) { if (!cpm_is_pro()) { return true; } if ($is_private == 'no') { return true; } return cpm_user_can_access($project_id, $section); }