https://github.com/pojome/elementor-hello-world https://fontawesome.com/icons?d=gallery
https://pojome.github.io/elementor-icons/
https://github.com/pojome/elementor/tree/master/docs#element
--- | |
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions | |
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows | |
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions | |
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/contexts-and-expression-syntax-for-github-actions | |
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/virtual-environments-for-github-hosted-runners | |
name : debug | |
on : | |
push : | |
branches : [ "master" ] |
<?php | |
/** | |
* Get the primary term of a post, by taxonomy. | |
* If Yoast Primary Term is used, return it, | |
* otherwise fallback to the first term. | |
* | |
* @version 1.1.0 | |
* | |
* @link https://gist.github.com/JiveDig/5d1518f370b1605ae9c753f564b20b7f |
select | |
p.id, | |
c.name as category, | |
GROUP_CONCAT(t.`name`) as tags | |
FROM wp_posts p | |
JOIN wp_term_relationships cr | |
on (p.`id`=cr.`object_id`) | |
JOIN wp_term_taxonomy ct | |
on (ct.`term_taxonomy_id`=cr.`term_taxonomy_id` | |
and ct.`taxonomy`='category') |
<?php | |
function prefix_replace_user_name(){ | |
global $current_user; | |
$fname = $current_user->first_name; | |
$lname = $current_user->last_name; | |
$full_name = ''; | |
if( empty($fname)){ | |
$full_name = $lname; | |
} elseif( empty( $lname )){ |
{ | |
"type": "package", | |
"package": { | |
"name": "easydigitaldownloads/edd-free-downloads", | |
"version": "dev-master", | |
"type": "WordPress-plugin", | |
"source": { | |
"url": "git@github.com:easydigitaldownloads/edd-free-downloads.git", | |
"type": "git", | |
"reference": "master" |
<?php | |
/** | |
* Session Helper Class | |
* | |
* A simple session wrapper class. | |
* | |
* Recommended for use with PHP 5.4.0 or higher. (Not required.) | |
* | |
* Usage Example: |
<script type="text/javascript"> | |
// let's make call to the global gwrf variable visible after enabling Gravity Forms | |
window.gwrf; | |
(function ($) { | |
gwrf = function (args) { | |
// prototype arguments, created when we instantiate it | |
this.formId = args.formId; | |
this.spinnerUrl = args.spinnerUrl; |
SELECT CONCAT('DROP DATABASE `', SCHEMA_NAME, '`;') | |
FROM `information_schema`.`SCHEMATA` | |
WHERE SCHEMA_NAME LIKE 'demo%'; |
Valet switch PHP version with these commands
Install PHP 5.6 and switch Valet to PHP 5.6
valet stop
brew unlink php71
brew install php56
brew install php56-mcrypt
brew link php56
valet start