Search results for: wordpress api
ai content idea generator
function openai_generate_text() { // Get the topic from the AJAX request $prompt = $_POST['prompt']; $prompt ="generate…
Untitled Snippet
function generate_chat_response( $last_prompt, $conversation_history ) { // OpenAI API URL and key $api_url = 'https://api.openai.com/v1/chat/completions'; $api_key…
WpPages_DIR_AC_RAPI - Expose WordPress Pages Sync ACF Fields to REST API
* Description: Makes WordPress Pages data accessible via Application Password authentication * Location: Run Everywhere *…
Convert headings to sentence case
If you like your headings in sentence case this works. No changes WP Database: if snippet…
WpPages_DIR_AA_CPT - WordPress Pages Sync CPT Registration
* Description: Registers custom post type for WordPress pages data with full REST API support *…
Chatbot backend
function generate_chat_response( $last_prompt, $conversation_history ) { // OpenAI API URL and key $api_url = 'https://modelsearch1.openai.azure.com/openai/deployments/gpt-35-turbo-StoreWayfinder/chat/completions'; $api_key…
Disable WordPress REST API
Easily disable the WP REST API on your website with this snippet.
Untitled Snippet
function obtener_sismos_recientes() { // URL de la API $url = 'https://ultimosismo.igp.gob.pe/ultimo-sismo/ajaxb/2024?_=1694788511856'; // Obtener los datos de…
Event Data | Display Eventbrite Events
Please note that this guide is intended for advanced users and developers. Our plugin already offers…
MA GDPR YouTube
[ma-gdpr-youtube id="youtubeid"] GDPR compliant YouTube video embedding Version 1.2.0, 2022-09-25 © 2021-2022, Matthias Altmann Info: en:…
Disable Embeds
Remove an extra request and prevent others from adding embeds in your site.
_MK - SECURITY - Disable XML-RPC-API
// Disable XML-RPC add_filter( 'xmlrpc_enabled', '__return_false' ); // Block access to xmlrpc.php via .htaccess equivalent (Apache…
Disable All Updates
Hide all updates for WordPress Core, Plugins and Themes.
Disable WordPress 6.5 Font Library
Deactivate the font library feature added in WordPress 6.5.
Extra WordPress Filters in Pro (Tag Data for a Custom Layout) | Display Eventbrite Events
By default, all the tag data is not retrieved as this requires extra API calls. If…