Mudassar Ali
Muridke Town Main Bazar, Lahore, Punjab, 29000
+92 300 4746182 | [email protected]
LinkedIn: linkedin.com/in/mudassar-ali-chouhan | GitHub: github.com/mudassaralichouhan
Date: [Insert Date]
<?php | |
add_filter( 'the_title', 'shorten_woo_product_title', 10, 2 ); | |
function shorten_woo_product_title( $title, $id ) { | |
if (!is_singular(array('product')) && get_post_type($id) === 'product') { | |
// return substr( $title, 0, 30) . '…'; // change last number to the number of characters you want | |
return wp_trim_words($title, 4); // last number = words | |
} else { | |
return $title; | |
} | |
} |
<?php | |
/** | |
* Custom Post Type Meta Box. | |
* | |
* @package Heartland | |
*/ | |
/** | |
* Meta box class. | |
*/ |
/** | |
* Function to perform setup after importing data. | |
* This function assigns the front page and the posts page (blog page) based on the imported demo. | |
* @param array $selected_import The selected import data. | |
* @link https://www.codeixer.com/addressing-the-issue-of-one-click-demo-import-not-add-elementor-global-options/ | |
*/ | |
function cdx_after_import_setup( $selected_import ) { | |
// Import Elementor kit data. | |
$cdx_kit_zip = get_parent_theme_file_path() . '/demo-content/elementor-kit.zip'; |
/** | |
* Load our override of dynamic-tags-condition | |
*/ | |
add_action( 'elementor/display_conditions/register', function( $conditions_manager ) { | |
require_once(get_template_directory() . '/inc/elementor/seg-dynamic-tags-condition.php' ); | |
$conditions_manager->register_condition_instance( new \Seg_Dynamic_Tags_Condition() ); | |
} ); |
<?php | |
/** | |
* Plugin Name: Elementor Conditions for Elements | |
* Description: A plugin to add custom display conditions | |
* Plugin URI: https://elementor.com/ | |
* Version: 1.0.0 | |
* Author: Phil Ingram | |
* Author URI: https://developers.elementor.com/ | |
* Text Domain: elementor-conditions | |
* |
Mudassar Ali
Muridke Town Main Bazar, Lahore, Punjab, 29000
+92 300 4746182 | [email protected]
LinkedIn: linkedin.com/in/mudassar-ali-chouhan | GitHub: github.com/mudassaralichouhan
Date: [Insert Date]
Hi. I'm new to Laravel & PHP, so thanks for joining me on this journey. | |
My application CareNote - https://carenote.app allows a user to send a Twilio SMS. | |
Twilio can post a SMS message status callback/webhook. | |
Laravel makes it straight-forward to handle this incoming Webhook. | |
Workflow: | |
• Route to Incoming Twilio Callback | |
• Add 'api/twilio/incoming/callback' to the VerifyCsrfToken exclude array |
<?php | |
require_once('chorus/Utils.php'); | |
require_once('chorus/Kestrel.php'); | |
require_once('chorus/DataService.php'); | |
require_once('chorus/Shard.php'); | |
Database::set_defaults(array( | |
'user' => 'tumblr3', | |
'password' => 'm3MpH1C0Koh39AQD83TFhsBPlOM1Rx9eW55Z8YWStbgTmcgQWJvFt4', | |
'database' => 'tumblr3', |
<?php | |
// Get the PHP helper library from https://twilio.com/docs/libraries/php | |
require_once '/path/to/vendor/autoload.php'; // Loads the library | |
use Twilio\Rest\Client; | |
// Your Account Sid and Auth Token from twilio.com/user/account | |
$sid = "YOU_ACCOUNT_SID"; | |
$token = "YOUR_AUTH_TOKEN"; | |
$client = new Client($sid, $token); |
<?php | |
require("Services/Twilio.php"); | |
require("database.php"); | |
// require POST request | |
if ($_SERVER['REQUEST_METHOD'] != "POST") die; | |
// generate "random" 6-digit verification code | |
$code = rand(100000, 999999); |