public static function CatchLoadEdit() { add_action('admin_footer', array('GFontsEngine', 'AddCustomBulkActionToEdit')); self::$changeTitle = true; $get = $_GET; $wp_list_table = _get_list_table('WP_Posts_List_Table'); $action = $wp_list_table->current_action(); if ($action == 'masstitlepreset') { $presetName = $get['gf_preset_name'] != '' ? $get['gf_preset_name'] : $get['gf_preset_name2']; if ($presetName != null) { $posts = $get['post']; $preset = GFontsDB::GetPresetByName($presetName); if ($preset != null) { foreach ($posts as $post_id) { GFontsDB::SetTitlePresetForPost($post_id, $preset); } } } } if ($action == 'masstitlepresetremove') { $posts = $get['post']; foreach ($posts as $post_id) { GFontsDB::RemoveTitlePresetFromPost($post_id); } } }