Nevermind, I figured out a way to make it work. I just removed the need for a url altogether. Here’s what I did in case anybody else wants to know.
I changed the link to an form input button:
<form method="post">
<input type="submit" name="bc_export" class="btn btn-export" value="Export Store List for '.$atts['value'].'" />
</form>
And changed the $_GET['action']
to a $_POST[]
:
if ( isset($_POST["bc_export"])) {
add_action( 'init', 'bc_export_function');
}
Related Posts:
- How to find the output of contact form 7 shortcode? [closed]
- Export WordPress Table to CSV from page
- Why is file_get_contents returning page source?
- How to retrieve current wordpress profile page URL?
- Display Data in Table from External Database in WP using Shortcodes
- Creating custom page template from existing PHP site
- Custom CSV exporter – Cannot modify header information – headers
- How to search order using database frontend short code WordPress
- Export WordPress User Meta to CSV/Excel
- Updating the database after parsing CSV document
- Front end/Database connection in WP
- Display total count of products in orders of a specific order status
- How does WordPress know wich language is chosen when there is a database connection error
- WordPress Shortcodes.. printf is outputting a random number… Can’t figure out WHY?
- Cron job update csv, need help solving :-)
- Colon is Missing In My Website Url in WordPress
- How can I save unique user data on my site? [closed]
- Is it possible to create a wordpress database with php code?
- Update results, Before deleting the related category [closed]
- Store a default value for a transient on plugin activation
- Custom shortcode outputs plain text instead of HTML at top of post
- How to use wp_add_inline_style for custom CSS added via shortcode?
- How WordPress reacts to a lack of memory of the server [closed]
- Pass php dynamic variable to shortcode
- How can I dynamically update the class in my shortcode?
- Creating own shortcode – echoeing php variable based on JS variable
- Split reads to a different connection string
- custom user role wordpress – grant guest access to edit.php without insert/update/delete
- Execute long and heavy processes
- Dynamic content in template
- database sent to a JSON file
- How create a Shortcode with hover and complex options
- Remove from shortcode
- Displaying recent posts on static page with template-part via shortcode
- wordpress 4.4 self hosted video (html5) doesn’t show
- inserting a post from an extern php file but post content doesn’t show on wp site
- do_shortcode with custom field
- How to Reference/Echo Variable from Another PHP Function
- Remove echo from shortcode
- Replace shortcode in substring
- Using custom tables for old posts
- Databases – Submitting data from inputs to database [closed]
- Shortcode to show the code
- db converts decimal number wrong
- Shortcode returns values in the wrong order
- Not connecting to database in file with multiple MySQL connections
- Get URL from shortcode tag
- Embedding PHP in shortcode $content
- Shortcode with PHP issue “Undefined index”
- Download full html page with CSV export plugin
- Creating a CSV with PHP inside the plugin directory
- Excecuting php function in shortcode
- Only first shortcode gets executed
- Multiple do_shortcode in page template
- Filtering a Database Query
- Returning data instead of echoing/printing
- echo something inside a shortcode
- displaying content that includes shortcodes within an echo
- List taxonomy term slugs within shortcode (do_shortcode)
- Shortcode from a function not working
- Is it best to avoid using $wpdb for security issues?
- get_posts works in the page template but not in a shortcode
- Is it possible to return content, and then also continue to do other things?
- ::before on open/close function [closed]
- anyway to put inside a $outprint=sprintf()
- How can I import an excel column into wordpress database?
- Blob file download problem
- WordPress Block developer from exporting Database via PHP
- How to retrieve the data from the sever and displaying it in a page?
- Is There A Way To Make Theme Files Accept Shortcodes?
- How can I include shortcodes within PHP?
- Is it possible to define variables in a wordpress shortcode, and then call the shortcode using a specific variable?
- Create a WordPress shortcode using PHP [duplicate]
- do_action(), iFrame Gets Displayed Despite Password Protection [closed]
- $wpdb returns duplicate posts
- Creating WordPress Shortcode with Variable
- Catchable fatal error: Object of class stdClass could not be converted to string
- Syntax error in a shortcode function
- Execute a function every hour in the background
- Create page with custom php script and fetched data
- Using Shortcode to Grab Archive Listing, Separate by Year
- Capitalize Shortcode Value on Output
- Shortcode to find and replace URL
- Why is my str_replace not working on short code submitted by front-end?
- Could use some help with Shortcodes
- wpdb prepare insert table doesn’t work
- Should I use WordPress to skin a database website?
- How do I display offsite database info on my wordpress site?
- Creating Database Table vs. Adding MetaData to Post & User
- How to put a form with php code into a variable or shortcode?
- Unable to process php via shortcode
- Help with WordPress function inside a shortcode
- WordPress and MySQL: trying to print data using PHP from user_meta custom field data
- Building a REST API for your web app exposes primary keys of DB records?
- calling a custom field value inside functions.php
- Using ob_start and ob_get_clean with wordpress shortcode
- Short code template + ajax
- Most commented posts by time period (last 12h, last 24h and etc)
- WordPress shortcode returns the data before
- List all blogs, but exclude the main site