Support

Search results for ""

Sorry, no results found. Perhaps you would like to search the documentation?
All Topics
Nohemi

Make an URLto filtering list

Hi,

With Admin columns v3, to redirect user to a filtered list i used a link like this :
https://example.com/wp-admin/edit.php?post_type=cpt-slug&cpac_filter[column-meta-key]=column-value
It worked perfectly.

But with v4, it doesn’t work because the column value is now encoded in url (why ?):
https://example.com/wp-admin/edit.php?post_type=cpt-slug&acp_filter[column-meta]=MjAxNy0wNi0wMQ==
How i can get this encoded value to make my link ?

6 years, 11 months ago
Nohemi

OK it’s just a base64 encoding so no problem to convert the value :)

But I’m still curious about why you encode the value.

I take this opportunity to ask you if there is a function to create this type of link ? For the moment i manually created the URL with add_query_arg and admin_url( 'edit.php' ). It works but I am dependent on the changes made by the plugin upgrades.

6 years, 11 months ago

You must be logged in to reply to this topic.