forked from educadigital/relia
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
43 lines (38 loc) · 1.08 KB
/
Copy pathindex.php
File metadata and controls
43 lines (38 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/**
* Plugin name: REliA
* Description: Habilita 10 taxonomias para classificação de recursos.
* Author: André Keher
* Author URI: http://github.com/andrekeher
*/
class Relia
{
public function __construct()
{
date_default_timezone_set('America/Sao_Paulo');
require_once __dir__ . '/vendor/autoload.php';
// Taxonomias
AreaConhecimento::getInstance();
Disciplina::getInstance();
Disponibilidade::getInstance();
Dispositivo::getInstance();
Idioma::getInstance();
Indicacao::getInstance();
LicencaUso::getInstance();
NivelEscolar::getInstance();
Pais::getInstance();
TipoUso::getInstance();
Taxonomia::getInstance();
// Customizações
Icone::getInstance();
Tooltip::getInstance();
Detalhe::getInstance();
add_filter('wp_terms_checklist_args', array($this, 'taxCheckedOnTop'));
}
public function taxCheckedOnTop($args)
{
$args['checked_ontop'] = false;
return $args;
}
}
$relia = new Relia();