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
/// Helper for EQCSS Element Queries `@element` | |
/// | |
/// @author Jason Featheringham | |
/// @link https://gist.github.com/thejase/d2107285b6e10315dd6bc055115647fe Code source | |
/// @link http://elementqueries.com/ Plugin to parse EQCSS | |
/// @link https://gist.github.com/tomhodgins/6237039fa07c2e4b7acd1c8b0f9549a9 EQCSS syntax | |
/// | |
/// @param {String} $scope (&) - Optional scope. Defaults to current context | |
/// @param {List} $conditions (()) - 1+ of Maps of EQCSS conditions | |
/// @content rules to enclose in element query |
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 | |
/** | |
* Duplicates a post & its meta and returns the new duplicated Post ID. | |
* | |
* @param int $post_id The Post ID you want to clone. | |
* @return int The duplicated Post ID. | |
*/ | |
function duplicate_post(int $post_id): int | |
{ |