PHP
How To Load A Script As An Es Module In WordPress
Filter the script tag with script_loader_tag to output type="module" for a specific handle.
How To Make An Ajax Request In WordPress With Admin-Ajax.php
Register a PHP handler with the wp_ajax_ and wp_ajax_nopriv_ hooks, then call it from JavaScript with fetch(). This example requires the lotgrafixData object from the wp_localize_script() post.
Get Page Content By Id
Displays the full title and content of a specific WordPress page by its ID, using WordPress’s native filters to preserve the page’s formatting and generated content.
Get Page Content By Title
Displays the full title and content of a specific WordPress page by its page title, using WordPress’s native filters to preserve the page’s formatting and generated content.
Get Category List
Displays your WordPress categories with customizable options for sorting, hierarchy, visibility, counts, and other display settings.


