Hides Enable Classic Editor Toggle Button for DIVI Theme

/*hide buttons when the Enable Classic Editor toggle is ENABLED*/ add_action(‘admin_head’, ‘pa_hide_standard_editor_button’); function pa_hide_standard_editor_button() { echo ‘ ‘; } /*hide buttons when Enable Classic Editor toggle is DISABLED*/ add_action(‘admin_head’, ‘pa_hide_default_editor_button’); function pa_hide_default_editor_button() { echo ‘ ‘; }Continue reading

Add Font To Salient Theme Admin

function salient_redux_custom_fonts() { return array( ‘Custom Fonts’ => array( ‘PP Formula Extended Medium’ => ‘PP Formula Extended Medium’ ) ); } add_filter( “redux/salient_redux/field/typography/custom_fonts”, “salient_redux_custom_fonts” );Continue reading

FC – WOO – Asignar automáticamente categorías padre al guardar producto en una categoría

//* 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

reyhanweb

@ini_set( ‘upload_max_size’ , ‘120M’ ); @ini_set( ‘post_max_size’, ‘120M’); @ini_set( ‘max_execution_time’, ‘300’ );Continue reading

PRO DRIVERS PERSONAL EXERCISE HUB APP

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

Payment Method Smart Tag

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