redelivre / delibera

Plugin do WordPress para democracia online
GNU General Public License v3.0
13 stars 8 forks source link

add filter hook to is_pauta #163

Closed miguelpeixe closed 7 years ago

miguelpeixe commented 7 years ago

Allow custom templates and pages to use delibera enqueued scripts, e.g.:

function my_theme_is_pauta($is_pauta) {
  if(is_page('community')) {
    return true;
  }
  return $is_pauta;
}
add_filter('delibera_is_pauta', 'my_theme_is_pauta');