• Namespace
  • Class
  • Tree
  • Deprecated
  • Todo
  • Hooks

Namespaces

  • None
  • SIW
    • Admin
    • API
    • Async
    • Batch
    • Compatibility
    • Data
    • Elements
    • Email
    • External
    • Forms
    • Modules
    • Newsletter
    • Page_Builder
    • Plato
    • Widgets
    • WooCommerce
      • Admin
      • Checkout
      • Email
      • Export
      • Frontend
      • Import

Classes

  • Animation
  • Assets
  • Attachment
  • Autoloader
  • Bootstrap
  • CSS
  • Elements
  • Formatting
  • Forms
  • Head
  • htaccess
  • HTML
  • i18n
  • Icons
  • Login
  • Media_Taxonomies
  • Options
  • Properties
  • Scheduler
  • Shortcodes
  • Update
  • Upload_Subdir
  • Util
  • Widgets

Class Util

Hulpfuncties

Namespace: SIW
Copyright: 2019 SIW Internationale Vrijwilligersprojecten
Since: 3.0.0
Located at util.php

Methods summary

public static integer
# get_mobile_breakpoint( )

Geeft breakpoint voor mobile terug

Geeft breakpoint voor mobile terug

Returns

integer
public static integer
# get_tablet_breakpoint( )

Geeft breakpoint voor tablet terug

Geeft breakpoint voor tablet terug

Returns

integer
public static string
# get_pattern( string $type )

Geeft validatiepatroon terug

Geeft validatiepatroon terug

Parameters

$type

Returns

string

Todo

patterns verplaatsen naar databestand
public static string
# get_regex( string $type )

Geeft reguliere expressie terug

Geeft reguliere expressie terug

Parameters

$type

Returns

string
public static array
# get_pages( )

Geeft array met pagina's in standaardtaal terug

Geeft array met pagina's in standaardtaal terug

Returns

array

Todo

https://docs.metabox.io/custom-select-checkbox-tree/
public static integer
# calculate_age( string $date )

Berekent leeftijd in jaren o.b.v. huidige datum

Berekent leeftijd in jaren o.b.v. huidige datum

Parameters

$date
dd-mm-jjjj

Returns

integer
leeftijd in jaren
public static integer
# convert_timestamp_to_gmt( integer $timestamp )

Converteert timestamp met tijdzone naar timestamp in GMT

Converteert timestamp met tijdzone naar timestamp in GMT

Parameters

$timestamp

Returns

integer
public static boolean
# is_workcamp_sale_active( )

Geeft aan of kortingsactie voor Groepsprojecten actief is

Geeft aan of kortingsactie voor Groepsprojecten actief is

Returns

boolean
public static boolean
# is_tailor_made_sale_active( )

Geeft aan of kortingsactie voor Projecten Op Maat actief is

Geeft aan of kortingsactie voor Projecten Op Maat actief is

Returns

boolean
public static boolean
# template_exists( string $template )

Geeft aan of template bestaat

Geeft aan of template bestaat

Parameters

$template

Returns

boolean
public static string
# post_exists( integer $post_id )

Geeft aan of post bestaat op basis van ID

Geeft aan of post bestaat op basis van ID

Parameters

$post_id

Returns

string
public static string
# get_request_parameter( string $key, string $default = '' )

Geeft parameter uit request terug

Geeft parameter uit request terug

Parameters

$key
$default

Returns

string
public static integer|boolean
# maybe_create_term( string $taxonomy, string $slug, string $name, string $order = null )

Creëert term indien deze nog niet bestaat

Creëert term indien deze nog niet bestaat

Parameters

$taxonomy
$slug
$name
$order

Returns

integer|boolean
SIW API documentation generated by ApiGen