Creating a new PHPExcel Object.
$this->PHPExcel = new PHPExcel();
Creating a new sheet:
| /** | |
| * | |
| */ | |
| (function ($) { | |
| PluginName = function () { | |
| this.init.apply(this, arguments); | |
| }; | |
| <?php | |
| /*** PHPExcel Object ***/ | |
| /* Get the default Style object */ | |
| (PHPExcel_Style) $style = ((PHPExcel) $excel)->getDefaultStyle() | |
| /*** PHPExcel_Cell Object ***/ | |
| /* Get the Style object for a Cell */ |
| <?php | |
| uniqid() | |
| 54e6d1765a02a | |
| uniqid('img_') | |
| img_54e6d1765a0ec | |
| uniqid('', true) | |
| 54e6d1765a1044.98757507 |
| <?php | |
| /** | |
| * 樹狀結構 class | |
| * | |
| * @author VECTOR Ann <[email protected]> | |
| * @link https://vector.cool | |
| * @version 1.0.0 | |
| */ | |
| $v_tree_demo = [ |
| /** | |
| * get_childs function | |
| * 無限層分類,包裹 HTML ul li 的架構 | |
| * | |
| * @param array $items | |
| * @param int $parent_id | |
| * @return string | |
| * | |
| * @author VECTOR Ann <[email protected]> | |
| * @link https://vector.cool |
| <?php | |
| /** | |
| * WordPress remove all notice and warning with user role editor | |
| * https://v123.tw | |
| */ | |
| add_filter('ure_role_additional_options', 'ure_add_block_admin_notices_option', 10, 1); | |
| function ure_add_block_admin_notices_option($items) { | |
| $item = URE_Role_Additional_Options::create_item('block_admin_notices', esc_html__('Block admin notices', 'user-role-editor'), 'admin_init', 'ure_block_admin_notices'); | |
| $items[$item->id] = $item; | |
| <?php | |
| /** | |
| * WordPress Remove notice and warning | |
| * https://v123.tw | |
| */ | |
| add_action('admin_print_scripts', 'ure_remove_admin_notices'); | |
| function ure_remove_admin_notices() { | |
| global $wp_filter; | |
| if (is_user_admin()) { | |
| if (isset($wp_filter['user_admin_notices'])) { |
| <?php | |
| /** | |
| * 刪除 WordPress Divi Project post type. | |
| * https://v123.tw | |
| */ | |
| add_filter( 'et_project_posttype_args', 'mytheme_et_project_posttype_args', 10, 1 ); | |
| function mytheme_et_project_posttype_args( $args ) { | |
| return array_merge( $args, array( | |
| 'public' => false, | |
| 'exclude_from_search' => false, |