Tag Archives: functions.php

Custom Post Types
Post Types in WordPress: How to Generate Them
Custom post types are a cornerstone of WP REST API. Today we will learn which default post types are already included in WordPress, where we can find them [...]
WordPress: export JS from php
Prepare the data in functions.php // functions.php wp_localize_script( 'main_js', // name of script name 'theData', // name of the object we want to output [...]