This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Website you intended to retrieve for users. | |
const upstream = 'api.openai.com' | |
// Custom pathname for the upstream website. | |
const upstream_path = '/' | |
// Website you intended to retrieve for users using mobile devices. | |
const upstream_mobile = upstream | |
// Countries and regions where you wish to suspend your service. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Website you intended to retrieve for users. | |
const upstream = 'api.openai.com' | |
// Custom pathname for the upstream website. | |
const upstream_path = '/' | |
// Website you intended to retrieve for users using mobile devices. | |
const upstream_mobile = upstream | |
// Countries and regions where you wish to suspend your service. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Enviar lead para CRM | |
Plugin URI: https://github.com/iuryLandin | |
Description: Enviar lead para CRM - WebHook para formulário do Elementor | |
Author: Iury Landin | |
Version: 1.0.2 | |
*/ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Insert_Comment extends ElementorPro\Modules\Forms\Classes\Action_Base { | |
public function get_name() { | |
return 'insert-comment'; | |
} | |
public function get_label() { | |
return 'Insert Comment'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Function to create TTS shortcode */ | |
function text_to_speech_shortcode($atts) { | |
$atts = shortcode_atts( | |
array( | |
'value' => 'Na', // Default Value | |
), | |
$atts | |
); | |
$value = $atts['value']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'elementor_pro/forms/new_record', function( $record, $ajax_handler ) { | |
$form_name = $record->get_form_settings( 'form_name' ); | |
// Change Form name according to your need | |
if ( 'your_form_name_here' == $form_name ) { | |
$raw_fields = $record->get( 'fields' ); | |
$fields = []; | |
foreach ( $raw_fields as $id => $field ) { | |
$fields[ $id ] = $field['value']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace MyTravelElementor\Modules\Search\Widgets; | |
use MyTravelElementor\Base\Base_Widget; | |
use Elementor\Controls_Manager; | |
use Elementor\Widget_Base; | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; // Exit if accessed directly. | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Twilio Elementor Pro form integration | |
* requirements: | |
* - php7.2 or greater | |
* - twilio php helper library - https://github.com/twilio/twilio-php/archive/main.zip | |
* - copy into theme folder /twilio and ref below on init | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
This is a quick a dirty way of saving JupiterX form submissions to your database, similar to how you can save the Elementor Pro ones. | |
I like the Jupiter X form widget because I work with its Hubspot action a lot, which Elementor Pro doesn't have. However the lack of local save sucks. | |
It seemed easier to implement saving submissions in the JX widget than Hubspot in the EPro one. | |
*/ | |
//Include the action class. You can save it where you want and adjust the path below | |
include_once(get_stylesheet_directory() . '/inc/localsave.php'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
use Illuminate\Support\Facades\Http; | |
class ProcessHubSpotController extends Controller | |
{ |
NewerOlder