當前位置: 首頁>>代碼示例>>PHP>>正文


PHP WP_List_Table::current_action方法代碼示例

本文整理匯總了PHP中WP_List_Table::current_action方法的典型用法代碼示例。如果您正苦於以下問題:PHP WP_List_Table::current_action方法的具體用法?PHP WP_List_Table::current_action怎麽用?PHP WP_List_Table::current_action使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在WP_List_Table的用法示例。


在下文中一共展示了WP_List_Table::current_action方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1:

 function current_action()
 {
     if (isset($_REQUEST['action']) && isset($_REQUEST['delete_tags']) && ('delete' == $_REQUEST['action'] || 'delete' == $_REQUEST['action2'])) {
         return 'bulk-delete';
     }
     return parent::current_action();
 }
開發者ID:Esleelkartea,項目名稱:herramienta_para_autodiagnostico_ADEADA,代碼行數:7,代碼來源:class-wp-terms-list-table.php

示例2:

 function current_action()
 {
     if (isset($_REQUEST['action']) && ('hide' == $_REQUEST['action'] || 'hide' == $_REQUEST['action2'])) {
         return 'bulk-hide';
     }
     return parent::current_action();
 }
開發者ID:mynein,項目名稱:myne,代碼行數:7,代碼來源:class-wp-ajaxy-sf-themes-list-table.php

示例3:

 function current_action()
 {
     if (isset($_REQUEST['changeit']) && !empty($_REQUEST['new_role'])) {
         return 'promote';
     }
     return parent::current_action();
 }
開發者ID:kd5ytx,項目名稱:Empirical-Wordpress,代碼行數:7,代碼來源:wangguard-class-wp-queue.php

示例4: current_action

 /**
  *
  * @return string
  */
 public function current_action()
 {
     if (isset($_REQUEST['found_post_id']) && isset($_REQUEST['media'])) {
         return 'attach';
     }
     if (isset($_REQUEST['parent_post_id']) && isset($_REQUEST['media'])) {
         return 'detach';
     }
     if (isset($_REQUEST['delete_all']) || isset($_REQUEST['delete_all2'])) {
         return 'delete_all';
     }
     return parent::current_action();
 }
開發者ID:kadrim1,項目名稱:metsayhistu,代碼行數:17,代碼來源:class-wp-media-list-table.php

示例5: current_action

 /**
  * Get the current action selected from the bulk actions dropdown, verifying
  * that it's a valid action to perform
  *
  * @see WP_List_Table::current_action()
  * @since 1.0
  * @return string|bool The action name or False if no action was selected
  */
 public function current_action()
 {
     $current_action = parent::current_action();
     if ($current_action && !array_key_exists($current_action, $this->get_bulk_actions())) {
         return false;
     }
     return $current_action;
 }
開發者ID:chhavinav,項目名稱:fr.ilovejuice,代碼行數:16,代碼來源:class-wc-points-rewards-manage-points-list-table.php

示例6:

 function current_action()
 {
     return parent::current_action();
 }
開發者ID:xuandungpy,項目名稱:vuong,代碼行數:4,代碼來源:class-wp-ms-themes-list-table.php

示例7:

 /**
  * Clear the recently activated snippets list if we've clicked the button
  * @return string The action to execute
  */
 function current_action()
 {
     if (isset($_POST['clear-recent-list'])) {
         $action = 'clear-recent-list';
     } else {
         $action = parent::current_action();
     }
     return apply_filters('code_snippets/list_table/current_action', $action);
 }
開發者ID:kgoedecke,項目名稱:kevingoedecke-blog,代碼行數:13,代碼來源:class-list-table.php

示例8: current_action

 /**
  * Render current trggier bulk action
  *
  * @since 1.0
  *
  * @return string [type of filter]
  */
 public function current_action()
 {
     if (isset($_REQUEST['filter_customer'])) {
         return 'filter_life_stage';
     }
     if (isset($_REQUEST['customer_search'])) {
         return 'customer_search';
     }
     return parent::current_action();
 }
開發者ID:ediamin,項目名稱:wp-erp,代碼行數:17,代碼來源:class-contact-list-table.php

示例9: current_action

 public function current_action()
 {
     if (isset($_POST['clear-recent-list'])) {
         return 'clear-recent-list';
     }
     return parent::current_action();
 }
開發者ID:sb-xs,項目名稱:que-pour-elle,代碼行數:7,代碼來源:class-wp-plugins-list-table.php

示例10: current_action

 /**
  * Get the current action selected from the bulk actions dropdown.
  * Return the action name or FALSE if no action was selected.
  *
  * @brief Action
  * @since 1.5.1
  * @deprecated - not used
  *
  * @return string|bool
  */
 public function current_action()
 {
     return isset($_REQUEST['_action']) ? $_REQUEST['_action'] : parent::current_action();
 }
開發者ID:wpxtreme,項目名稱:wpdk,代碼行數:14,代碼來源:wpdk-listtable-viewcontroller.php

示例11: current_action

 public function current_action()
 {
     if (isset($_REQUEST['filter_employee'])) {
         return 'filter_employee';
     }
     if (isset($_REQUEST['employee_search'])) {
         return 'employee_search';
     }
     return parent::current_action();
 }
開發者ID:ediamin,項目名稱:wp-erp,代碼行數:10,代碼來源:class-employee-list-table.php

示例12: current_action

 /**
  * Get current action
  *
  * @since  0.6
  * @return string|boolean
  */
 public function current_action()
 {
     if (isset($_REQUEST['add_users']) && isset($_REQUEST["users"])) {
         return 'add_users';
     }
     return parent::current_action();
 }
開發者ID:olechka1505,項目名稱:hungrylemur,代碼行數:13,代碼來源:list-members.php

示例13: current_action

 /**
  * Trigger currenct bulk action
  *
  * @since 1.0
  *
  * @return string
  */
 public function current_action()
 {
     if (isset($_REQUEST['filter_group'])) {
         return 'filter_group';
     }
     return parent::current_action();
 }
開發者ID:ediamin,項目名稱:wp-erp,代碼行數:14,代碼來源:class-contact-subscriber-list-table.php

示例14: current_action

 /**
  *
  * @return string
  */
 public function current_action()
 {
     $action = wp_validate_action();
     if ($action && isset($_REQUEST['delete_tags']) && ('delete' == $action || 'delete' == $_REQUEST['action2'])) {
         return 'bulk-delete';
     }
     return parent::current_action();
 }
開發者ID:NeftaliYagua,項目名稱:WordPress,代碼行數:12,代碼來源:class-wp-terms-list-table.php

示例15: activity_process_bulk_action

 public function activity_process_bulk_action()
 {
     $wp_list_table = new WP_List_Table();
     $action = $wp_list_table->current_action();
     if ($action === false) {
         return;
     }
     switch ($action) {
         case 'trash':
             if (!empty($_REQUEST['log'])) {
                 $ids = $_REQUEST['log'];
                 self::move_to_trash_activity($ids);
             }
             break;
         case 'untrash':
             if (!empty($_REQUEST['log'])) {
                 $ids = $_REQUEST['log'];
                 self::untrash_data_activity($ids);
             }
             break;
         case 'delete':
             if (!empty($_REQUEST['log'])) {
                 $ids = $_REQUEST['log'];
                 self::delete_data_activity($ids);
             }
             break;
     }
 }
開發者ID:daanbakker1995,項目名稱:vanteun,代碼行數:28,代碼來源:class-wc-crm-admin-post-actions.php


注:本文中的WP_List_Table::current_action方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。