Skip to content

Instantly share code, notes, and snippets.

@akther80
akther80 / functions.php
Last active July 3, 2023 11:07
Vodi - Remove watch now button
add_action( 'init', 'vodi_child_remove_movie_action_buttons');
function vodi_child_remove_movie_action_buttons() {
remove_action( 'masvideos_after_movies_loop_item_title', 'masvideos_template_loop_movie_actions', 20 );
}
@akther80
akther80 / functions.php
Last active June 7, 2023 06:30
MyTravel - Add custom tab in yacht
add_action( 'mytravel_single_yacht', 'mytravel_single_hotel_amenities', 85 );
add_action( 'mytravel_single_yacht', 'mytravel_single_yacht_custom_tab', 90 );
if ( ! function_exists( 'mytravel_default_yacht_tabs' ) ) {
/**
* Add default yacht tabs to yacht pages.
*
* @param array $tabs Array of tabs.
* @return array
@akther80
akther80 / functions.php
Created June 6, 2023 04:59
MyTravel - Add image in tour itinerary
if ( ! function_exists( 'mytravel_single_tour_itinerary' ) ) {
/**
* Output of single tour itinerary
*/
function mytravel_single_tour_itinerary() {
if ( ! mytravel_is_acf_activated() ) {
return;
}
$tour_itinerary = mytravel_get_field( 'itinerary_places' );
@akther80
akther80 / functions.php
Created May 26, 2023 11:19
MyTravel -Tour Booking form
add_action( 'mytravel_single_tour_sidebar', 'mytravel_single_product_sidebar', 10 );
if ( ! function_exists( 'mytravel_single_product_sidebar' ) ) {
/**
* Single tour sidebar functions
*/
function mytravel_single_product_sidebar() {
global $product, $post;
$price_html = $product->get_price_html();
@akther80
akther80 / style.css
Created May 24, 2023 11:53
Geeks - Change font family
body,
#courseForm.create-course .tutor-course-builder-section #tutor-course-content-builder-root .tutor-quiz-builder-modal-wrap .quiz-builder-tab-container .h1,
#courseForm.create-course .tutor-course-builder-section #tutor-course-content-builder-root .tutor-quiz-builder-modal-wrap .quiz-builder-tab-container h1,
#courseForm.create-course .tutor-course-builder-section #tutor-course-content-builder-root .tutor-quiz-builder-modal-wrap .tutor-quiz-feedback-mode-option .tutor-quiz-feedback-option-option-title,
#courseForm.create-course .tutor-course-builder-section .modal-header .modal-title .h1,
#courseForm.create-course .tutor-course-builder-section .modal-header .modal-title h1,
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6{
font-family: "Inter", "sans-serif";
}
@akther80
akther80 / functions.php
Created May 16, 2023 11:38
MyTravel -Tour v2 tab
if ( ! function_exists( 'mytravel_default_tour_tabs' ) ) {
/**
* Add default tour tabs to hotel pages.
*
* @param array $tabs Array of tabs.
* @return array
*/
function mytravel_default_tour_tabs( $tabs = array() ) {
global $product, $post;
@akther80
akther80 / functions.php
Created May 9, 2023 05:32
NyTravel - WooCommerce image size option
add_filter( 'mytravel_woocommerce_args', 'mytravel_child_woocommerce_args');
function mytravel_child_woocommerce_args( $args ) {
$args = array(
'default_columns' => 5,
'default_rows' => 5,
'min_columns' => 1,
'max_columns' => 6,
'min_rows' => 1
);
@akther80
akther80 / functions.php
Last active May 8, 2023 12:20
MyTravel - Remove categories in comment form
function mas_travels_hotel_review_comment_form_args( $comment_form ) {
$comment_form['comment_field'] = '';
if ( wc_review_ratings_enabled() ) {
$rating_options = '<option value="">' . esc_html__( 'Rate&hellip;', 'mas-travels' ) . '</option>
<option value="5">' . esc_html__( 'Perfect', 'mas-travels' ) . '</option>
<option value="4">' . esc_html__( 'Good', 'mas-travels' ) . '</option>
<option value="3">' . esc_html__( 'Average', 'mas-travels' ) . '</option>
@akther80
akther80 / functions.php
Created May 8, 2023 04:27
MyTravel - Remove Map from Tour format
add_action( 'init', 'mytravel_remove_map_location' );
function mytravel_remove_map_location() {
remove_action( 'mytravel_single_tour', 'mytravel_single_hotel_location_map', 70 );
}
@akther80
akther80 / single-course-enrolled.php
Created May 4, 2023 10:57
Geeks - Rearrange Course Benefit
<?php
$is_enrolled = apply_filters( 'tutor_alter_enroll_status', tutor_utils()->is_enrolled() );
?>
<div class="p-lg-5 py-5">
<div class="container">
<?php if ( tutor_utils()->has_video_in_single() || has_post_thumbnail() ) {
?>
<div class="row">
<div class="col-lg-12 col-md-12 col-12 mb-5">