本文整理汇总了PHP中WP_List_Table::display_tablenav方法的典型用法代码示例。如果您正苦于以下问题:PHP WP_List_Table::display_tablenav方法的具体用法?PHP WP_List_Table::display_tablenav怎么用?PHP WP_List_Table::display_tablenav使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WP_List_Table
的用法示例。
在下文中一共展示了WP_List_Table::display_tablenav方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: display_tablenav
public function display_tablenav($which)
{
$screen = get_current_screen();
if ($screen->id != 'wc_crm_accounts') {
parent::display_tablenav($which);
}
}
示例2: display_tablenav
/**
* Generate the table navigation above or below the table
*/
public function display_tablenav($which)
{
if ('top' == $which) {
return;
}
parent::display_tablenav($which);
}
示例3: display_tablenav
/**
* Don't need this.
*/
public function display_tablenav($position)
{
if ($position != 'top') {
parent::display_tablenav($position);
}
}
示例4:
/**
* Generate the table navigation above or below the table
*
* @since 1.2
*/
function display_tablenav($which)
{
if ('top' == $which) {
?>
<input type="hidden" name="page" value="<?php
echo $_REQUEST['page'];
?>
" />
<?php
if (isset($_REQUEST['status'])) {
?>
<input type="hidden" name="status" value="<?php
echo $_REQUEST['status'];
?>
" />
<?php
}
}
parent::display_tablenav($which);
}
示例5: display_tablenav
protected function display_tablenav($which)
{
if ($this->display_nav) {
parent::display_tablenav($which);
}
}
示例6: display_tablenav
public function display_tablenav($which)
{
if ('top' == $which) {
$_SERVER['REQUEST_URI'] = $this->wp->removeQueryArgument('_wp_http_referer', $_SERVER['REQUEST_URI']);
}
parent::display_tablenav($which);
}
示例7: display_tablenav
/**
* Generate the table navigation above or below the table
*
* @since 3.1.0
* @access protected
*
* @param string $which
*/
protected function display_tablenav($which)
{
/**
* Custom nonce
*/
if ('top' == $which) {
echo '<input type="hidden" name="nonce" value="' . $this->nonce . '">';
}
parent::display_tablenav(FALSE);
}
示例8:
function display_tablenav($which)
{
if ('bottom' != $which) {
parent::display_tablenav($which);
}
}
示例9:
function display_tablenav( $which ) {
global $status;
if ( !in_array( $status, array( 'mustuse', 'dropins' ) ) )
parent::display_tablenav( $which );
}
示例10:
function display_tablenav($which)
{
parent::display_tablenav($which);
}