Table

How to Create a Table in WordPress Admin Panel. Part 2.2.
How to Create a Table in WordPress Admin Panel. Part 2.2.

Good day, dear blog readers!
Let’s continue dissecting our table plugin “piece by piece.” In this part, we’ll take a look at our table class: “Plance_Table_Lessons2.”

When we open the class, the first method we’ll see is `prepare_items()`. It’s responsible for preparing data to be displayed. Calling this method is mandatory. Here’s the method code:

read more...

How to create a table in WordPress admin panel. Part 2.1.
How to create a table in WordPress admin panel. Part 2.1.

Hello, dear readers and guests of the blog. Yes, yes, yes. I'm lazy and haven’t written in a while. It’s easy to quit, but much harder to start writing again. But I really hope that this will change soon. I’ve gained quite a bit of interesting knowledge in WordPress — created a couple of plugins, completed several backend projects. As for frontend — still the same old story.

Now, to the point. In this article, we’ll extend the capabilities of our class — adding a search form, styles, checkboxes, and bulk actions on records. So, let’s get started.

You can find the first article in this series by following this link. Since some time has passed, I’ve changed the names of some classes and methods, but the purpose and tasks remain the same. I believe a bit of confusion will be good for you — it’ll make you think a little more carefully.

read more...

How to Create a Table in WordPress Admin Panel. Part 1
How to Create a Table in WordPress Admin Panel. Part 1

In this article, we’ll continue developing our shortcode creation plugin and take a look at how to create tables in the WordPress admin panel. Of course, we could do without a table by defining an N-number of fields for our shortcodes. But having the ability to create an unlimited number of them will be an invaluable advantage for our plugin. Moreover, this gives us a good opportunity to deepen our programming skills within WP.

As usual, let’s start from the beginning — creating the plugin files (in future articles, this will not be repeated). Inside the “/wp-content/plugins/” directory, create a folder named “wp2fl-lessons-table-create-part1”, and inside it — the file “wp2fl-lessons-table-create-part1.php”.

read more...