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


PHP TGMPA_List_Table::views方法代碼示例

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


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

示例1: install_plugins_page

        /**
         * Echoes plugin installation form.
         *
         * This method is the callback for the admin_menu method function.
         * This displays the admin page and form area where the user can select to install and activate the plugin.
         * Aborts early if we're processing a plugin installation action.
         *
         * @since 1.0.0
         *
         * @return null Aborts early if we're processing a plugin installation action.
         */
        public function install_plugins_page()
        {
            // Store new instance of plugin table in object.
            $plugin_table = new TGMPA_List_Table();
            // Return early if processing a plugin installation action.
            if (('tgmpa-bulk-install' === $plugin_table->current_action() || 'tgmpa-bulk-update' === $plugin_table->current_action()) && $plugin_table->process_bulk_actions() || $this->do_plugin_install()) {
                return;
            }
            // Force refresh of available plugin information so we'll know about manual updates/deletes.
            wp_clean_plugins_cache(false);
            ?>
            <div class="tgmpa wrap">
                <h2><?php 
            echo esc_html(get_admin_page_title());
            ?>
</h2>
                <?php 
            $plugin_table->prepare_items();
            ?>

                <?php 
            if (!empty($this->message) && is_string($this->message)) {
                echo wp_kses_post($this->message);
            }
            ?>
                <?php 
            $plugin_table->views();
            ?>

                <form id="tgmpa-plugins" action="" method="post">
                    <input type="hidden" name="tgmpa-page" value="<?php 
            echo esc_attr($this->menu);
            ?>
" />
                    <input type="hidden" name="plugin_status" value="<?php 
            echo esc_attr($plugin_table->view_context);
            ?>
" />
                    <?php 
            $plugin_table->display();
            ?>
                </form>
            </div>
            <?php 
        }
開發者ID:GvarimAZA,項目名稱:website,代碼行數:56,代碼來源:class-tgm-plugin-activation.php


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