Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
/** * Change the WP Page Template to Elementor Canvas with Post ID. */ function jkit_change_post_template() { /** * Please enter the Post ID you want to change its Page Template to Elementor Canvas. */ $post_template_id = array( 11, 26 ); /** The Example is 11 and 26 */ foreach ( $post_template_id as $id ) { $page_template = get_post_meta( $id, '_wp_page_template', true ); $search_key = 'elementor_'; if ( strpos( $page_template, $search_key ) === false ) { update_post_meta( $id, '_wp_page_template', 'elementor_canvas' ); } } } add_action( 'init', 'jkit_change_post_template' );
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)