post_type === 'aksrt_resource') return true; if ($p->post_type !== 'post') return false; return (bool) get_post_meta($p->ID, '_aksrt_is_resource', true); } } if (!function_exists('aksrt_get_post_flow')) { /** * @deprecated v4 起恒为 'cms'。 * * @param int|WP_Post|null $post * @return string 'cms' */ function aksrt_get_post_flow($post = null): string { unset($post); return 'cms'; } } if (!function_exists('aksrt_is_cms_mode')) { /** * 当前请求是否处在 CMS 形态。v4 起全站统一 CMS。 * * @return bool */ function aksrt_is_cms_mode(): bool { return true; } } if (!function_exists('aksrt_flow_layout_for')) { /** * @deprecated v4 起恒为 'grid-cms'。 * * @param string $flow * @return string */ function aksrt_flow_layout_for(string $flow): string { unset($flow); return 'grid-cms'; } }