How to provide page_template path in custom plugin using WordPress

Question

How we can provide page_template path in custom plugin using WordPress?

I given a path in page_template=”templatepage/checkoutpage.php” as array of post.Inserting post data by wp_insertpost() function.But page_template value of path is not triggered and not displaying the php template file.I created a custom template page and it’s not triggering.

Please give suggestions for my question.

0
Mallesh 3 weeks 2023-05-07T05:26:09-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse