Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9082447
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T20:33:36+00:00 2026-06-16T20:33:36+00:00

Hi i am writing a plugin in which i have displayed various entries from

  • 0

Hi i am writing a plugin in which i have displayed various entries from database by extending wordpress wp_list_table class.
To display some action links in every single row i have used this function in such following way.

function column_name($item) {
    $actions = array(
        'edit' => sprintf('<a href="?page=%s&action=%s& hotel=%s">Edit</a>',$_REQUEST['page'],'edit',$item['id']),
        'delete' => sprintf('<a href="?page=%s&action=%s&hotel=%s">Delete</a>',$_REQUEST['page'],'delete',$item['id']),
    );
    return sprintf('%1$s %2$s', $item['Name'], $this->row_actions($actions) );
}

but from admin page when i click on those links nothing happen only the url changes i searched every ware and most of the examples are using static data in the form of array so what i want to say is how i can make it active by $_GET[] method or is there any other way to do it ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T20:33:37+00:00Added an answer on June 16, 2026 at 8:33 pm

    Back in your settings page, you should add an if statement for the $GET value. (i.e. the callback from your add(sub)menu_page call.

    e.g.

    if( isset( $_GET['edit-hotel'] ) ) :
      // Show my edit hotel form
    else :
      // Show my WP_List_Table
    endif;
    

    You can of course show the list table above your edit form as well if appropriate – this is just an example.

    Be aware that the WP_List_table class is marked @access private so shouldn’t really be used as part of the API. See this comment from WordPress core developer Andrew Nacin.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I´m writing an eclipse plugin which should show some information of an enum class.
I am writing a plugin which grabs an array of data from the wordpress
I am writing a plugin (my first) for CRM2011 which needs to pull some
I'm writing plugin for eclipse which should be XML editor with 2 pages: the
I am writing a vim plugin in which i need to determine all those
Im writing a policy plugin for VS which checks several issues with the code.
I'm writing a jQuery plugin , which similar to this, $(this).each(function(){ $el = $(this).find('.el')
In a plugin I'm writing, the dev can specify options, which I'm storing and
I'm writing an app for gnome which will support plugins. Each plugin will contain
I'm writing a plug-in for WordPress which in fact will be a separate ordering

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.