// // Automatically Delete Woocommerce Images After Deleting a Product add_action( ‘before_delete_post’, function ( $post_id ) { // Check if user has the capability to delete products if ( !current_user_can( ‘delete_products’ ) ) { return; } $product = wc_get_product( $post_id…Continue reading
//* Hacemos que automáticamente se seleccionen los términos padre al guardar add_action(‘save_post’, function ($post_id, $post){ $arrayPostTypeAllowed = array(‘product’); $arrayTermsAllowed = array(‘product_cat’); if(!in_array($post->post_type, $arrayPostTypeAllowed)){ return $post_id; }else{ foreach($arrayTermsAllowed as $t_name){ $terms = wp_get_post_terms($post_id, $t_name ); foreach($terms as $term){ while($term->parent != 0…Continue reading
// Desactivamos la opción de IA de Elementor add_filter(‘get_user_option_’ . Elementor\Modules\Ai\Preferences::ENABLE_AI, ‘__return_null’);Continue reading
@ini_set( ‘upload_max_size’ , ‘120M’ ); @ini_set( ‘post_max_size’, ‘120M’); @ini_set( ‘max_execution_time’, ‘300’ );Continue reading
@ini_set( ‘upload_max_size’ , ‘120M’ ); @ini_set( ‘post_max_size’, ‘120M’); @ini_set( ‘max_execution_time’, ‘300’ );Continue reading
Certainly! Below is the **full HTML code** for your app, updated with all the features discussed. This includes the registration page, body profile page, tailored exercise plan page, progress sheet, blog page, and more. You can upload this code to…Continue reading
add_filter( ‘simpay_payment_details_template_tags’, function( $tags ) { $tags[] = ‘payment-method’; return $tags; } ); add_filter( ‘simpay_payment_confirmation_template_tag_payment-method’, function( $value, $payment_confirmation_data ) { $charges = \SimplePay\Core\API\Charges\all( array( ‘customer’ => $payment_confirmation_data[‘customer’]->id, ‘limit’ => 1, ), $payment_confirmation_data[‘form’]->get_api_request_args() ); $charge = end( $charges->data ); $payment_method_details =…Continue reading
add_filter( ‘gform_form_args’, ‘setup_form_args’ ); function setup_form_args( $form_args ) { $form_args[‘ajax’] = true; return $form_args; }Continue reading
function searchwp_custom_modal_shortcode() { $trigger_markup = searchwp_modal_form_trigger([ ‘echo’ => false, ‘type’ => ‘link’, ‘text’ => ‘!Search!’, ‘template’ => ‘default’, ]); // Replace placeholder with SVG icon. $icon_svg = ‘‘; $trigger_markup = str_replace(‘!Search!’, $icon_svg, $trigger_markup); return $trigger_markup; } add_shortcode(‘searchwp_custom_modal_shortcode’, ‘searchwp_custom_modal_shortcode’);Continue reading
add_filter( ‘wcvendors_pro_mark_order_received_status’, ‘__return_false’ );Continue reading