The One Time Executor

Go to wordpress.org and give this idea a rating/reply.

Distracting Executioner

It would be nice to have something that gives the option to execute Shortcode, or even php itself within the post ONE TIME.

Meaning before publishing, or even after editing.
Think of this, you can insert some Shortcode or even PHP (with the right plugin), and you turn on a temporary filter with a toggle switch somewhere on the edit page, that runs before saving the post.

So essentially the post’s dynamic content is now hardcoded, and saved in the database. No need to process anything after that within that particular post, it’s now completely static content. The next time you edit the post, you will see what was printed out, now as the actual content.

This would best be suited as a toggle option because sometimes you want things to be dynamic, but seriously most of the time you don’t.

This attacks that “Make it Faster” idea everyone is always mentioning.
Takes away the need for a server-side cache system in some respect.
Really, this makes sense for any CMS, blog engine, or whatever you want to call them.

Leave the power with the authors 😉

Even have overall toggle switches for allowing individual toggling based on role, default value for the toggle, and global auto-one-time execution.

This might also be the beginning of the solution to most of the problems concerning autoformatting and the WYSIWYG editor. Maybe when switching from HTML to visual, you get an alert that when accepted it must run the filter on the content. Then when you go from Visual to HTML, there is NO NEED TO PARSE THE CONTENT yet again. You can keep the HTML the way it should be.

No need to auto format either. Because the auto format can be a part of this one-time execution/filtering/formatting process. Copying and pasting from word or something else is not enough to have a filter run on every post’s content, everywhere, all of the time…

It makes sense to happen once, doesn’t it?

Isn’t that how regular applications do it?
You open a file, and it converts/formats it if it needs to, but when you save it, it is now saved with those conversions as part of the file!
You don’t have to worry about it converting again, it is now what it should be, and modifications are now done on the converted version.


Posted

in

,

by

Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.