api – XTRA Tutorials https://xtratheme.com/docs Documentation of XTRA WordPress Theme Sat, 18 Jun 2022 09:11:00 +0000 en-US hourly 1 https://wordpress.org/?v=6.8.2 codevz/page/meta https://xtratheme.com/docs/developer/codevz-page-meta/ https://xtratheme.com/docs/developer/codevz-page-meta/#respond Tue, 11 Jun 2024 07:47:51 +0000 https://xtratheme.com/docs/?p=2755

Example code

Step 1
XTRA

Using WordPress filter to modify any page meta values

In the following example you can see how to change page layout to left.

XTRA

How and where should I add this PHP codes?

Best solution is to add custom actions and filters in Child Theme functions.php file. But also you can create your own plugin and use this codes in your plugin.

XTRA

How to find any page meta settings key?

In the below screenshot, you can see how to find hide header page meta key. First edit your page in backend then find your option and then open your browser inspect element feature to find the input name or data-depent-id attribute. Exactly like below shot you can find key. For hide header key is hide_header

How to find page meta key settings min
]]>
https://xtratheme.com/docs/developer/codevz-page-meta/feed/ 0