Devflow CMS Documentation

  • Home
Getting Started
  • Server Requirements
  • Installation
  • Configuration
    • Request
    • Response
    • Controllers
    • Error Handling
    • Logging
    • Sessions
    • RBAC
    • Routing
    • Views
    • Middleware
    • Database
    • CSRF Protection
    • Authentication
    • Encryption
    • Passwords
    • Content Security Policy
    • Security headers
  • GPLv2 License
Digging Deeper
  • Introduction
  • Caching
  • Events
  • Localization
  • Mailer
  • Options
  • Task Scheduling
  • SEO
Development
  • Guide
  • Action Hooks
  • Auth Helpers
  • Codex
  • Content Helpers
  • Core Helpers
  • Controllers
  • Service Providers
  • Views
  • Custom Fields
  • Database Helpers
  • Filter Hooks
  • Menu Helpers
  • Plugins
  • Plugin Helpers
  • Product Helpers
  • Rest api
  • Site Helpers
  • Themes
  • Theme Helpers
  • URL Helpers
  • User Helpers
API
  • Index
    • cms image optimizer
    • Activate plugin
    • Activate theme
    • Active plugins
    • Add admin submenu
    • Add content attribute
    • Add dashboard submenu
    • Add options submenu
    • Add plugins submenu
    • Add product attribute
    • Add query arg
    • Add sites submenu
    • Add themes submenu
    • Add user to site
    • Add users submenu
    • Admin dashboard js
    • Admin enqueue footer
    • Admin enqueue head
    • Admin footer
    • Admin head
    • Admin login url
    • Admin logout url
    • Admin url
    • Ae
    • Beautify filename
    • Blacklisted usernames
    • Check includes
    • Check syntax
    • Checked
    • Checked selected helper
    • Cms admin url
    • Cms authenticate
    • Cms authenticate user
    • Cms charset
    • Cms clear auth cookie
    • Cms delete content type
    • Cms delete product
    • Cms delete site
    • Cms delete site user
    • Cms dev mode
    • Cms dropdown languages
    • Cms editor
    • Cms encode email
    • Cms encode email str
    • Cms enqueue css
    • Cms enqueue js
    • Cms footer
    • Cms get current user
    • Cms head
    • Cms home url
    • Cms insert content type
    • Cms insert product
    • Cms insert site
    • Cms insert user
    • Cms login url
    • Cms logout url
    • Cms optimized image upload
    • Cms release value
    • Cms set auth cookie
    • Cms site status label
    • Cms site url
    • Cms slugify
    • Cms unique content slug
    • Cms unique content type slug
    • Cms unique product slug
    • Cms unique site slug
    • Cms update content type
    • Cms update product
    • Cms update site
    • Cms update user
    • Cms upload image
    • Collection
    • Compare releases
    • Content author
    • Content body
    • Content featured image
    • Content id
    • Content permalink
    • Content published date
    • Content published datetime
    • Content published time
    • Content slug
    • Content status label
    • Content title
    • Convert date to gmt
    • Convert seconds to time
    • Create site directories
    • Css directory
    • Css directory uri
    • Currency option
    • Current screen
    • Current user can
    • Deactivate plugin
    • Deactivate theme
    • Decrypt
    • Delete content attribute
    • Delete option
    • Delete product attribute
    • Delete site directories
    • Delete site tables
    • Delete site user record
    • Delete user attribute
    • Dfdb
    • Disabled
    • Does site exist
    • Email exists
    • Encrypt
    • Fonts directory uri
    • Generate random password
    • Generate random username
    • Generate site key
    • Generate timezone list
    • Generate unique key
    • Get age
    • Get all content
    • Get all content types
    • Get all content with filters
    • Get all products with filters
    • Get all sites
    • Get all users
    • Get auth screen logo
    • Get content
    • Get content attribute
    • Get content author
    • Get content author id
    • Get content body
    • Get content by
    • Get content by id
    • Get content by type and id
    • Get content class
    • Get content content type id
    • Get content contenttype
    • Get content contenttype link
    • Get content contenttype name
    • Get content created date
    • Get content created time
    • Get content date
    • Get content datetime
    • Get content modified
    • Get content modified date
    • Get content modified time
    • Get content parent
    • Get content parent dropdown list
    • Get content parent id
    • Get content published date
    • Get content published time
    • Get content relative url
    • Get content show in menu
    • Get content show in search
    • Get content sidebar
    • Get content slug
    • Get content status
    • Get content time
    • Get content title
    • Get content type by
    • Get content type description
    • Get content type permalink
    • Get content type slug
    • Get content type title
    • Get current screen
    • Get current site id
    • Get current site key
    • Get current user id
    • Get domain name
    • Get file size
    • Get functions
    • Get http response code
    • Get initials
    • Get logo large
    • Get logo mini
    • Get multisite users
    • Get name
    • Get object subtype
    • Get option
    • Get owner sites
    • Get permalink
    • Get product attribute
    • Get product author
    • Get product author id
    • Get product body
    • Get product by
    • Get product by id
    • Get product class
    • Get product created date
    • Get product created time
    • Get product date
    • Get product datetime
    • Get product modified
    • Get product modified date
    • Get product modified time
    • Get product published date
    • Get product published time
    • Get product show in menu
    • Get product show in search
    • Get product sku
    • Get product slug
    • Get product status
    • Get product time
    • Get product title
    • Get products
    • Get registry entry
    • Get roles
    • Get secure cookie data
    • Get site by
    • Get site domain
    • Get site name
    • Get site owner
    • Get site path
    • Get site status
    • Get siteinfo
    • Get super admins
    • Get system roles
    • Get theme
    • Get user attribute
    • Get user avatar
    • Get user avatar url
    • Get user by
    • Get user date format
    • Get user datetime
    • Get user datetime format
    • Get user option
    • Get user roles
    • Get user time format
    • Get user timezone
    • Get user value
    • Get userdata
    • Get users by site key
    • Get users dropdown
    • Get users dropdown list
    • Get users reassign
    • Has content
    • Has filter
    • Has products
    • Has site user record
    • Home url
    • If content slug exists
    • If content type exists
    • If content type slug exists
    • If product slug exists
    • If site domain exists
    • If site exists
    • If site slug exists
    • If user has sites
    • Image directory uri
    • Is content parent
    • Is duplicate function
    • Is main site
    • Is multisite
    • Is plugin activated
    • Is serialized
    • Is ssl
    • Is super admin
    • Is theme active
    • Is user logged in
    • Javascript directory uri
    • Less directory uri
    • Load active plugins
    • Load active theme
    • Load core locale
    • Load devflow textdomain
    • Login form show message
    • Login url
    • Logout url
    • Make clickable
    • Maybe serialize
    • Maybe unserialize
    • Nav links
    • New site schema
    • Normalize path
    • Number content by type
    • Option
    • Plugin basename
    • Plugin dir path
    • Plugin dir url
    • Plugin info
    • Plugin url
    • Populate options cache
    • Process email html
    • Product author
    • Product body
    • Product currency
    • Product featured image
    • Product id
    • Product permalink
    • Product price
    • Product published date
    • Product published datetime
    • Product published time
    • Product purchase url
    • Product sku
    • Product slug
    • Product status label
    • Product title
    • Public site upload url
    • Public site url
    • Publish scheduled content
    • Publish scheduled product
    • Raw theme root
    • Reassign content
    • Reassign sites
    • Register activation hook
    • Register deactivation hook
    • Remote file exists
    • Remove user from site
    • Replace template vars
    • Reset password
    • Restore current site
    • Rmdir
    • Sanitize filename
    • Sanitize meta
    • Seconds to minutes
    • Selected
    • Send email change email
    • Set email template
    • Set registry entry
    • Set url scheme
    • Show update message
    • Site directory key
    • Site path
    • Site switching in effect
    • Site url
    • Site user lookup
    • Siteinfo
    • Sort list
    • Switch to site
    • The attribute
    • The body
    • The content
    • The created date
    • The created time
    • The modified date
    • The modified time
    • The permalink
    • The product
    • The product attribute
    • The product created date
    • The product created time
    • The product modified date
    • The product modified time
    • The product published date
    • The product published time
    • The published date
    • The published time
    • The title
    • Theme directory uri
    • Theme info
    • Theme name
    • Theme root
    • Theme url
    • Time ago
    • Tinymce link list
    • Unassigned sites
    • Update content attribute
    • Update option
    • Update product attribute
    • Update user attribute
    • Updater server url
    • Url
    • User lookup
    • Username exists

Get age

Previous Next

Get age by birthdate.


  • Full name: get_age
  • Defined in: cms/core/Shared/Helpers/core.php

Parameters

Parameter Type Description
$birthdate string User's birthdate.

Return Value

string|int

Generate unique key Get all content
Menu
Home
Getting Started
Server Requirements Configuration GPLv2 License Installation
Digging Deeper
Introduction Events Caching Localization Mailer Options Task Scheduling SEO
Development
Guide Action Hooks Auth Helpers Codex Content Helpers Core Helpers Controllers Service Providers Views Custom Fields Database Helpers Filter Hooks Menu Helpers Plugins Plugin Helpers Product Helpers Rest api Site Helpers Themes Theme Helpers URL Helpers User Helpers
API
Index

On This Page

Parameters Return Value
Built by Joshua P. — shadcn theme provided by @asiffer