Skip to content

Commit

Permalink
New filter for lang attribute string
Browse files Browse the repository at this point in the history
'wflux_doc_lang' new filter
  • Loading branch information
Jonnyauk committed Apr 15, 2016
1 parent 2bd7e0e commit 598e562
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wf-includes/wf-helper-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ function __construct() {

// LANGUAGE CODE
$this->wfx_doc_lang = (isset($this->wfx_db_display['doc_lang']) ) ? $this->wfx_db_display['doc_lang'] : false;
$this->wfx_doc_lang = apply_filters( 'wflux_doc_lang', $this->wfx_doc_lang );
// Validate
$wfx_doc_lang_out = 'en';
// Too many language codes to validate against - lets just check for length
Expand Down

0 comments on commit 598e562

Please sign in to comment.