Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefilling the editor content with templates #110

Open
Jeuners opened this issue Mar 17, 2023 · 0 comments
Open

Prefilling the editor content with templates #110

Jeuners opened this issue Mar 17, 2023 · 0 comments

Comments

@Jeuners
Copy link

Jeuners commented Mar 17, 2023

I have templates for pages and would like to fill the editor with the template content. Like this...

mytemplate_1.php:
/*Template Name: Pages 1 */
$content = '

This is some pre-defined content that will appear in the editor.

';
the_editor($content);

Unfortunately, I have not found a way to do that. Is there a solution for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant