当前位置: 首页>>代码示例>>PHP>>正文


PHP GFEntryList::get_default_filter方法代码示例

本文整理汇总了PHP中GFEntryList::get_default_filter方法的典型用法代码示例。如果您正苦于以下问题:PHP GFEntryList::get_default_filter方法的具体用法?PHP GFEntryList::get_default_filter怎么用?PHP GFEntryList::get_default_filter使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在GFEntryList的用法示例。


在下文中一共展示了GFEntryList::get_default_filter方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: init


//.........这里部分代码省略.........
                 add_action('wp_dashboard_setup', array('RGForms', 'dashboard_setup'));
                 // Support modifying the admin page title for settings
                 add_filter('admin_title', array(__CLASS__, 'modify_admin_title'), 10, 2);
                 require_once GFCommon::get_base_path() . '/includes/locking/locking.php';
                 if (self::is_gravity_page()) {
                     require_once GFCommon::get_base_path() . '/tooltips.php';
                 } else {
                     if (RG_CURRENT_PAGE == 'media-upload.php') {
                         require_once GFCommon::get_base_path() . '/entry_list.php';
                     } else {
                         if (in_array(RG_CURRENT_PAGE, array('admin.php', 'admin-ajax.php'))) {
                             add_action('wp_ajax_rg_save_form', array('RGForms', 'save_form'));
                             add_action('wp_ajax_rg_change_input_type', array('RGForms', 'change_input_type'));
                             add_action('wp_ajax_rg_refresh_field_preview', array('RGForms', 'refresh_field_preview'));
                             add_action('wp_ajax_rg_add_field', array('RGForms', 'add_field'));
                             add_action('wp_ajax_rg_duplicate_field', array('RGForms', 'duplicate_field'));
                             add_action('wp_ajax_rg_delete_field', array('RGForms', 'delete_field'));
                             add_action('wp_ajax_rg_delete_file', array('RGForms', 'delete_file'));
                             add_action('wp_ajax_rg_select_export_form', array('RGForms', 'select_export_form'));
                             add_action('wp_ajax_rg_start_export', array('RGForms', 'start_export'));
                             add_action('wp_ajax_gf_upgrade_license', array('RGForms', 'upgrade_license'));
                             add_action('wp_ajax_gf_delete_custom_choice', array('RGForms', 'delete_custom_choice'));
                             add_action('wp_ajax_gf_save_custom_choice', array('RGForms', 'save_custom_choice'));
                             add_action('wp_ajax_gf_get_post_categories', array('RGForms', 'get_post_category_values'));
                             add_action('wp_ajax_gf_get_address_rule_values_select', array('GFForms', 'get_address_rule_values_select'));
                             add_action('wp_ajax_gf_get_notification_post_categories', array('RGForms', 'get_notification_post_category_values'));
                             //add_action( 'wp_ajax_gf_save_confirmation', array( 'RGForms', 'save_confirmation' ) );
                             add_action('wp_ajax_gf_delete_confirmation', array('RGForms', 'delete_confirmation'));
                             add_action('wp_ajax_gf_save_new_form', array('RGForms', 'save_new_form'));
                             add_action('wp_ajax_gf_save_title', array('RGForms', 'save_form_title'));
                             //entry list ajax operations
                             add_action('wp_ajax_rg_update_lead_property', array('RGForms', 'update_lead_property'));
                             add_action('wp_ajax_delete-gf_entry', array('RGForms', 'update_lead_status'));
                             //form list ajax operations
                             add_action('wp_ajax_rg_update_form_active', array('RGForms', 'update_form_active'));
                             //notification list ajax operations
                             add_action('wp_ajax_rg_update_notification_active', array('RGForms', 'update_notification_active'));
                             //confirmation list ajax operations
                             add_action('wp_ajax_rg_update_confirmation_active', array('RGForms', 'update_confirmation_active'));
                             //dynamic captcha image
                             add_action('wp_ajax_rg_captcha_image', array('RGForms', 'captcha_image'));
                             //dashboard message "dismiss upgrade" link
                             add_action('wp_ajax_rg_dismiss_upgrade', array('RGForms', 'dashboard_dismiss_upgrade'));
                             // entry detail: resend notifications
                             add_action('wp_ajax_gf_resend_notifications', array('RGForms', 'resend_notifications'));
                             // Shortcode UI
                             add_action('wp_ajax_gf_do_shortcode', array('GFForms', 'handle_ajax_do_shortcode'));
                             // Export
                             add_filter('wp_ajax_gf_process_export', array('GFForms', 'ajax_process_export'));
                             add_filter('wp_ajax_gf_download_export', array('GFForms', 'ajax_download_export'));
                             // Dismiss message
                             add_action('wp_ajax_gf_dismiss_message', array('GFForms', 'ajax_dismiss_message'));
                         }
                     }
                 }
                 add_filter('plugins_api', array('RGForms', 'get_addon_info'), 100, 3);
                 add_action('after_plugin_row_gravityforms/gravityforms.php', array('RGForms', 'plugin_row'));
                 add_action('install_plugins_pre_plugin-information', array('RGForms', 'display_changelog'));
                 add_filter('plugin_action_links', array('GFForms', 'plugin_settings_link'), 10, 2);
             }
         }
         add_action('admin_init', array('RGForms', 'ajax_parse_request'), 10);
         $gf_page = self::get_page();
         if ($gf_page == 'entry_list' && !isset($_GET['filter'])) {
             require_once GFCommon::get_base_path() . '/entry_list.php';
             $default_filter = GFEntryList::get_default_filter();
             if ($default_filter !== 'all') {
                 $url = add_query_arg(array('filter' => $default_filter));
                 $url = esc_url_raw($url);
                 wp_safe_redirect($url);
             }
         }
         if ($gf_page == 'entry_list') {
             add_filter('set-screen-option', array('GFForms', 'set_screen_options'), 10, 3);
             add_filter('screen_settings', array('GFForms', 'show_screen_options'), 10, 2);
         }
         if ($gf_page == 'form_list') {
             add_filter('set-screen-option', array('GFForms', 'set_screen_options'), 10, 3);
         }
     } else {
         add_action('wp_enqueue_scripts', array('RGForms', 'enqueue_scripts'), 11);
         add_action('wp', array('RGForms', 'ajax_parse_request'), 10);
     }
     // Add admin bar items
     add_action('wp_before_admin_bar_render', array('GFForms', 'admin_bar'));
     add_shortcode('gravityform', array('RGForms', 'parse_shortcode'));
     add_shortcode('gravityforms', array('RGForms', 'parse_shortcode'));
     // ManageWP premium update filters
     add_filter('mwp_premium_update_notification', array('RGForms', 'premium_update_push'));
     add_filter('mwp_premium_perform_update', array('RGForms', 'premium_update'));
     // Push Gravity Forms to the top of the list of plugins to make sure it's loaded before any add-ons
     add_action('activated_plugin', array('GFForms', 'load_first'));
     // Add the "Add Form" button to the editor. The customizer doesn't run in the admin context.
     if (GFForms::page_supports_add_form_button()) {
         // Adding "embed form" button to the editor
         add_action('media_buttons', array('GFForms', 'add_form_button'), 20);
         // Adding the modal
         add_action('admin_print_footer_scripts', array('GFForms', 'add_mce_popup'));
     }
 }
开发者ID:fjbeteiligung,项目名称:development,代码行数:101,代码来源:gravityforms.php


注:本文中的GFEntryList::get_default_filter方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。