Exclude downloads from search

function sumobi_download_post_type_args( $download_args ) { $download_args[‘exclude_from_search’] = true; return $download_args; } add_filter( ‘edd_download_post_type_args’, ‘sumobi_download_post_type_args’ );Continue reading

Change Checks to Wire Transfer

/** * Change the word “Check” to “Wire Transfer” on the checkout page and settings pages. * * @since 1.0 * @return array */ function custom_change_checks_to_wire( $gateways ){ $gateways[‘checks’] = array( ‘admin_label’ => ‘Wire Transfer’, ‘checkout_label’ => __( ‘Wire Transfer’,…Continue reading

Move Points Message Below Content

if ( class_exists( ‘EDD_Points_Renderer’ ) ) { global $edd_points_render; remove_action( ‘edd_before_download_content’, array( $edd_points_render, ‘edd_points_message_content’ ), 10 ); add_action( ‘edd_after_download_content’, array( $edd_points_render, ‘edd_points_message_content’ ), 0 ); }Continue reading

Reverse Receivers

function edd_c_reverse_receivers( $receivers, $payment_id ) { $receivers = explode( “\n”, $receivers ); $receivers = implode( “\n”, array_reverse( $receivers ) ); return $receivers; } add_filter( ‘epap_adaptive_receivers’, ‘edd_c_reverse_receivers’, 10, 2 );Continue reading

FES Login Form Redirect

function custom_fes_login_redirect( $response, $userdata ) { $response[‘redirect_to’] = ‘http://google.com/’; return $response; } add_filter( ‘fes_login_form_success_redirect’, ‘custom_fes_login_redirect’, 10, 2 );Continue reading

Vendor Canonical Links

function jp_maybe_fix_canonical() { if ( get_query_var( ‘vendor’ ) ) { remove_action( ‘wp_head’, ‘rel_canonical’ ); add_action( ‘wp_head’, ‘jp_fix_canonical’ ); } } add_action( ‘template_redirect’, ‘jp_maybe_fix_canonical’ ); function jp_fix_canonical() { $link = home_url( ‘vendor/’ ); if ( $vendor = get_query_var( ‘vendor’ ) )…Continue reading

Remove aggregateRating schema when review schema is missing

add_filter( ‘aioseo_schema_output’, ‘product_schema_remove_aggregate’ ); function product_schema_remove_aggregate( $schema ) { foreach ( $schema as &$schemaItem ) { if ( ‘Product’ === $schemaItem[‘@type’] ) { if(!isset($schemaItem[‘review’])){ unset ($schemaItem[‘aggregateRating’]); } } } return $schema; }Continue reading

Translate Products

function my_custom_fes_product_constant_plural_uppercase( $products_name ){ return ‘Products’; // Replace this with your languages word for “Products” } add_filter( ‘fes_product_constant_plural_uppercase’, ‘my_custom_fes_product_constant_plural_uppercase’ ); function my_custom_fes_product_constant_plural_lowercase( $products_name ){ return ‘products’; // Replace this with your languages word for “products” } add_filter( ‘fes_product_constant_plural_lowercase’, ‘my_custom_fes_product_constant_plural_lowercase’ );…Continue reading