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…

Convert headings to sentence case

If you like your headings in sentence case this works. No changes WP Database: if snippet…

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.

9.6k

Event Data | Display Eventbrite Events

Please note that this guide is intended for advanced users and developers. Our plugin already offers…

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…

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.

1.5k

_MK - SECURITY - Disable XML-RPC-API

// Disable XML-RPC add_filter( 'xmlrpc_enabled', '__return_false' ); // Block access to xmlrpc.php via .htaccess equivalent (Apache…

<10

Disable WordPress 6.5 Font Library

Deactivate the font library feature added in WordPress 6.5.

300+

Disable All Updates

Hide all updates for WordPress Core, Plugins and Themes.

400+

WP Simple Pay: Custom Server-Side Validation Before Payment Creation

Perform additional custom server-side validation prior to allowing a payment to be created.

Remove Unwanted Events | Display Eventbrite Events

Sometimes it is simplest to resort to code if you want to remove something from the…

1 2