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
import apiFetch from '@wordpress/api-fetch'; | |
import { useState, useEffect, useRef } from '@wordpress/element'; | |
import { createNavigationLink } from './use-convert-to-navigation-links'; | |
import { useSelect, useDispatch } from '@wordpress/data'; | |
import { Popover, Spinner } from '@wordpress/components'; | |
import { __ } from '@wordpress/i18n'; | |
import { | |
store as blockEditorStore, | |
useBlockProps, | |
} from '@wordpress/block-editor'; |
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 myModal = new HystModal({ | |
linkAttributeName: 'data-hystmodal', | |
afterClose: function(modal){ | |
document.querySelector('presto-player').pause(); | |
}, | |
}); |
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 EITHER of these (NOT BOTH) to your client site functions.php file if using the client site plugin. | |
*/ | |
/** | |
* Disable commenting on specific pages | |
*/ | |
function wp_124_disable_for_pages($load) |
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_action("surecart/order_created", function( $order ) { | |
$checkout = \SureCart\Models\Checkout::with([ | |
'line_items', | |
'line_item.price', | |
'line_item.fees', | |
'price.product', | |
'discount', | |
'discount.promotion', |
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
:root { | |
/** Brand */ | |
--sc-color-brand-primary: #08BA4F; | |
--sc-color-brand-secondary: #2CC965; | |
--sc-color-brand-heading: #002E33; | |
--sc-color-brand-body: #45505F; | |
--sc-color-brand-main-background: #F2FAFC; | |
--sc-color-brand-content-background: #FFFFFF; | |
--sc-color-brand-stroke: #E7ECEE; | |
--sc-color-brand-subheading: #9CA7AB; |
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 | |
// manually include the SDK. | |
if ( ! class_exists( 'SureCart\Licensing\Client' ) ) { | |
require_once __DIR__ . '/licensing/src/Client.php'; | |
} | |
/** | |
* Validates license with license manager for SureCart | |
* |
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
/** Brand */ | |
--sc-color-brand-primary: #08BA4F; | |
--sc-color-brand-secondary: #2CC965; | |
--sc-color-brand-heading: #002E33; | |
--sc-color-brand-body: #45505F; | |
--sc-color-brand-main-background: #F2FAFC; | |
--sc-color-brand-content-background: #FFFFFF; | |
--sc-color-brand-stroke: #E7ECEE; | |
--sc-color-brand-subheading: #9CA7AB; | |
--sc-color-brand-pastel-pink: #FCF2F7; |
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_action('admin_init', function() { | |
if ( 27 !== get_current_user_id()) { | |
return; | |
} | |
$threads = get_posts([ | |
'numberposts' => -1, | |
'post_type' => 'phw_comment_loc', |
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 | |
/** | |
* Retrieve the plan ID for an item in the cart | |
* | |
* @access public | |
* @since 2.4 | |
* @return string | |
*/ | |
public function get_plan_id( $subscription = 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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
NewerOlder