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…
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.
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.
Disable WordPress 6.5 Font Library
Deactivate the font library feature added in WordPress 6.5.
Disable All Updates
Hide all updates for WordPress Core, Plugins and Themes.
WP Simple Pay: Custom Server-Side Validation Before Payment Creation
Perform additional custom server-side validation prior to allowing a payment to be created.
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…
Remove Unwanted Events | Display Eventbrite Events
Sometimes it is simplest to resort to code if you want to remove something from the…
Defining SendLayer Mailer Constants
This snippet will prevent users from changing WP Mail SMTP settings in your WordPress admin area…
Defining SMTP.com Mailer Constants
This snippet will prevent users from changing WP Mail SMTP settings in your WordPress admin area…