Category: Admin
Untitled Snippet
Untitled Snippet
WP Simple Pay: Google GA4 Payment Conversion Tracking (copy)
/** * @link https://library.wpcode.com/snippet/j57gxn45/ */ add_action( ‘simpay_payment_receipt_viewed’, /** * Runs the first time the payment confirmation page is viewed. * * @param array $payment_confirmation_data */ function( $payment_confirmation_data ) { // Payment customer data (not used in this example). $customer =…Continue reading
0000 > CLASS > Show Data
// this is the class definition class myfair_Show_Data { public function __construct() { $this->loadShows(); if (isset($this->showList) && is_array($this->showList) && count($this->showList) > 0) { $this->loadShowCustomData(); } } public function loadShows() { $loop = new WP_Query(array( ‘post_type’ => ‘show’, ‘post_parent’ => ‘0’,…Continue reading
Disable the delivery of SEO Email Reports
add_filter( ‘aioseo_report_summary_enable’, ‘__return_false’ );Continue reading
Remove the default ‘aioseo-‘ ID prefix added for the Table of Content block
add_filter( ‘aioseo_toc_hash_prefix’, function( $prefix ) { return ”; } );Continue reading
Use a custom ID prefix in Table of Content block
add_filter( ‘aioseo_toc_hash_prefix’, function( $prefix ) { return ‘mysite-‘; } );Continue reading