WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 8 weeks ago

#40629 new feature request

Change default template

Reported by: pratikgandhi Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.7.4
Component: Editor Keywords:
Focuses: administration, template Cc:

Description

I recently required to change the default template of theme to another template. The site is already working since 3 months and now client wants to change the default template to the sidebar template while publishing new pages.

There is no such action or filter available for it.

I am trying to add filter for it but if anyone have other suggestions, please let me know.

Change History (2)

This ticket was mentioned in Slack in #core by noisysocks. View the logs.


8 weeks ago

#2 @noisysocks
8 weeks ago

  • Component changed from General to Editor

I don’t think get_default_post_to_edit() has any filter for that, seems like a reasonable request.

Any change here would have to work in the REST API and block editor as well.

Note: See TracTickets for help on using tickets.