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 | |
/** | |
* The plugin bootstrap file | |
* | |
* @wordpress-plugin | |
* Plugin Name: AcfRepeater | |
* Description: Add acf-repeater dynamic tag | |
* Version: 1.0.0 | |
* License: GPL-2.0+ | |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
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 | |
/** | |
* add_new_topic_hooks will add a new webhook topic hook. | |
* @param array $topic_hooks Esxisting topic hooks. | |
*/ | |
function add_new_topic_hooks( $topic_hooks ) { | |
// Array that has the topic as resource.event with arrays of actions that call that topic. | |
$new_hooks = array( |
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
const loadProduct = async() => { | |
try { | |
const prequest = await fetch("https://webtechforce.com/wp-json/wp/v2/posts/7544/?_embed"); | |
// console.log(prequest); | |
if (prequest.status == 200) { | |
let product = await prequest.json(); | |
let product_src = await product._embedded['wp:featuredmedia']; | |
if (typeof(product_src) != "undefined") { |
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
// Set the default timezone using a GMT offset | |
$offset = -5; // GMT offset | |
$is_DST = FALSE; // observing daylight savings? | |
$timezone_name = timezone_name_from_abbr('', $offset * 3600, $is_DST); // e.g. "America/New_York" | |
date_default_timezone_set($timezone_name); |
This file has been truncated, but you can view the full file.
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
{ | |
"name": "Ian Devling", | |
"imageUrl": "https://raw.githubusercontent.com/bumbeishvili/Assets/master/Projects/D3/Organization%20Chart/cto.jpg", | |
"area": "Corporate", | |
"profileUrl": "http://example.com/employee/profile", | |
"office": "CTO office", | |
"tags": "Ceo,tag1,manager,cto", | |
"isLoggedUser": false, | |
"unit": { | |
"type": "business", |
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
license: mit |
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 | |
function wpum_set_logged_in_user( $user_login, $user ) { | |
if ( ! defined( 'WPUM_VERSION' ) || version_compare( WPUM_VERSION, '2.1.12', '>' ) ) { | |
return; | |
} | |
wp_set_current_user( $user->ID ); | |
} | |
add_action( 'wp_login', 'wpum_set_logged_in_user', 10, 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
<?php | |
/** | |
* Plugin Name: AffWP Custom Meta Box Example | |
* Plugin URI: https://affiliatewp.com | |
* Description: AffWP Custom Meta Box Example | |
* Author: AffiliateWP, LLC | |
* Author URI: https://affiliatewp.com | |
* Version: 1.0 | |
* Text Domain: affwp-custom-meta-box-example | |
* */ |
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 | |
if ( !class_exists( "ReduxFramework" ) ) { | |
return; | |
} | |
if ( !class_exists( "Redux_Framework__318df089ec571809f60f6c0" ) ) { | |
class Redux_Framework__318df089ec571809f60f6c0 { | |
public function __construct( ) { | |
// Your base config file for Redux |