This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| brdocs = { | |
| /** | |
| * Enum com opções do validador | |
| * @readonly | |
| * @enum {number} | |
| */ | |
| cpfcnpj: { "CPF": 1, "CNPJ": 2, "AMBOS": 3 }, | |
| /** | |
| * Função que valida CPF e CNPJ de uma só vez. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * The below function will help to load template file from plugin directory of wordpress | |
| * Extracted from : http://wordpress.stackexchange.com/questions/94343/get-template-part-from-plugin | |
| */ | |
| define('PLUGIN_DIR_PATH','Your-plugin-directory-path'); | |
| function ccm_get_template_part($slug, $name = null) { | |
| do_action("ccm_get_template_part_{$slug}", $slug, $name); |