add_filter( ‘wfea_availability_display’, function ( $msg, $total_sold, $event_capacity) { // do your stuff change $msg return $msg; }, 10, 3 );Continue reading
add_filter( ‘wfea_currency_symbol’, function ( $symbol, $currency) { // do you stuff to update the symbol return $symbol; }, 10, 2 );Continue reading
add_filter( ‘wfea_price_display’, function ( $price_display, $min, $max, $currency) { // do you stuff to update $end return $price_display; }, 10, 4 );Continue reading
add_filter( ‘wfea_eventbrite_event_end’, function ( $end ) { // do you stuff to update $end return $end; }, 10, 1 );Continue reading
add_filter( ‘wfea_eventbrite_event_start’, function ( $start ) { // do you stuff to update $start return $start; }, 10, 1 );Continue reading
/** * @link https://library.wpcode.com/snippet/ro8xmx35/ */ add_action( ‘simpay_before_payment_create’, /** * @param \WP_REST_Request WordPress REST API request. */ function( $request ) { // Retrieve form values. $fields = $request->get_param( ‘form_values’ ); $email = $fields[‘simpay_email’]; // Search for customers based on email. $customers…Continue reading
add_filter( ‘aioseo_schema_output’, ‘add_author_name_when_missing’ ); function add_author_name_when_missing( $schema ) { if ( is_single() && ‘post’ == get_post_type() ) { global $post; $author_id = $post->post_author; $author_name = get_the_author_meta( ‘display_name’, $author_id ); foreach ( $schema as &$schemaItem ) { if ( isset($schemaItem[‘@type’]) &&…Continue reading
add_filter( ‘the_content’, function ( $content ) { // This snippet requires the DOMDocument class to be available. if ( ! class_exists( ‘DOMDocument’ ) ) { return $content; } if ( !is_single() || !in_the_loop() || !is_main_query() ) { return $content; }…Continue reading
add_action( ‘wp_default_scripts’, function ( $scripts ) { if ( ! is_admin() && isset( $scripts->registered[‘jquery’] ) ) { $script = $scripts->registered[‘jquery’]; if ( ! empty( $script->deps ) ) { $script->deps = array_diff( $script->deps, array( ‘jquery-migrate’ ) ); } } }, 150…Continue reading