current_shortcode() detect currently used shortcode. I made my catch all handler accept a third argument, which is the shortcode name:
At the beginning of wp_insert_post, the function that saves/updates a post, there is a filter called wp_insert_post_empty_content. By default this filter checks whether the title, editor, and excerpt fields are all empty, in which case the save …
I am not sure if this will work for you but it is worth a shot. I use this all the time for my custom post types when they require a special template.
If still relevant, maybe this could help others looking for similar solutions
You should be familiar with already, as you should be using it to create the table. On your install hook you should have something like:
If you want to test your custom SQL to see how it affects the loading time, you can try this query swapping:
How can you set maximum width for original images. I was able to solve it using the following code:
The redirect_canonical function in /wp-includes/canonical.php is called on any given URL and will attempt to best-guess the URL the user wanted, and redirect them to there, when a URL does not exist. It has a …