This file contains hidden or 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 cm_stop_index_on_update_20240418(){ | |
if( class_exists('\Codemanas\Typesense\Main\EventListener')){ | |
$instance = \Codemanas\Typesense\Main\EventListener::getInstance(); | |
remove_action( 'wp_after_insert_post', [$instance, 'postCreatedUpdatedHandler'], 10 ); | |
//The code below stops from deleting posts when it is deleted. | |
// remove_action( 'delete_post', [ $instance, 'postDeletedHandler' ], 10); | |
// remove_action( 'wp_trash_post', [ $instance, 'postDeletedHandler' ], 10 ); | |
} | |
} |
This file contains hidden or 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 cm_2023_02_12_disable_zoom_default_single_template () { | |
remove_filter( 'single_template', [ Zoom_Video_Conferencing_Admin_PostType::get_instance(), 'single' ], 20 ); | |
} | |
add_action( 'init', 'cm_2023_02_12_disable_zoom_default_single_template'); |
This file contains hidden or 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 cm_vczapi_pro_20231228_change_calendar_link( $props, $meeting_post_id ) { | |
$meeting_details = get_post_meta( $meeting_post_id, '_meeting_zoom_details', true ); | |
if ( ! empty( $meeting_details ) && is_object( $meeting_details ) ) { | |
$props['meetingLink'] = isset($meeting_details->registration_url) ? '<a href="'.$meeting_details->registration_url.'">Register</a>' : $props['meetingLink']; | |
} | |
return $props; | |
} |
This file contains hidden or 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 temp_zoom_link_retrieve( $meeting_id ) { | |
$meeting_details = json_decode( zoom_conference()->getMeetingInfo( $meeting_id ) ); | |
$pwd = ! empty( $meeting_details->password ) ? $meeting_details->password : false; | |
$meeting_args = [ 'password' => $pwd ]; | |
return \Codemanas\VczApi\Helpers\Links::getJoinViaBrowserJoinLinks( $meeting_args, $meeting_id ); | |
} |
This file contains hidden or 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 | |
namespace Codemanas\SiteModsTS; | |
use WP_Block_Template; | |
use WP_Query; | |
class BlockTemplate { | |
public static ?BlockTemplate $instance = null; |
This file contains hidden or 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
.block-editor-block-list__block:hover:not(:focus-within) { | |
box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); | |
} |
This file contains hidden or 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 | |
class Blocks{ | |
public function __construct(){ | |
add_filter( 'allowed_block_types_all', [ $this, 'remove_template_blocks' ], 50, 2 ); | |
} | |
public function remove_template_blocks( $allowed_block_types, $block_editor_context ) { | |
if ( ! isset( $block_editor_context->name ) ) { | |
return $allowed_block_types; | |
} |
This file contains hidden or 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
.aa-List .aa-ItemContent .aa-ItemIcon{ display: none } | |
.aa-List .aa-ItemContent{ grid-template-columns: 1fr } |
This file contains hidden or 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 | |
namespace Codemanas\VczapiBookingsMod; | |
class VCZAPIBookingsMod { | |
public static $instance = null; | |
public static function get_instance() { | |
return is_null( self::$instance ) ? self::$instance = new self() : self::$instance; | |
} |
This file contains hidden or 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_filter( 'vczapi-woocommerce-appointments-meeting-topic', 'change_appointment_topic', 10, 3 ); | |
function change_appointment_topic( $topic, $product_id, $appointment_id ) { | |
$topic = 'Appointment - ' . $appointment_id; | |
return $topic; | |
} |
NewerOlder