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
@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
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( ‘wcvendors_pro_mark_order_received_status’, ‘__return_false’ );Continue reading
/** * Add support for Product Expiry for WooCommerce Plugin */ if ( class_exists( ‘WOO_Product_Expiry’) ){ /** * Add fields to the product edit form under prices */ function wcv_pefwc_add_fields( $post_id ){ // Expiry date field. $expiry_date = get_post_meta( $post_id,…Continue reading
// filepath: functions.php // Hook into ACF to dynamically populate the ‘vestiging’ select field for Medewerkers add_filter(‘acf/load_field/name=vestiging’, ‘populate_vestiging_field_for_medewerkers’); function populate_vestiging_field_for_medewerkers($field) { // Reset choices $field[‘choices’] = []; // Query the ‘Vestigingen’ custom post type $vestigingen = get_posts([ ‘post_type’ => ‘vestigingen’,…Continue reading
// Hook into ACF to dynamically populate the ‘vestiging’ select field add_filter(‘acf/load_field/name=vestiging’, ‘populate_vestiging_field’); function populate_vestiging_field($field) { // Reset choices $field[‘choices’] = []; // Query the ‘Vestigingen’ custom post type $vestigingen = get_posts([ ‘post_type’ => ‘vestigingen’, // Custom post type slug…Continue reading
/** * Add Sortable Post ID Column Before Author in Admin List View */ function add_sortable_post_id_before_author_column($columns) { $new_columns = array(); foreach ($columns as $key => $value) { if ($key === ‘author’) { $new_columns[‘post_id’] = ‘ID’; } $new_columns[$key] = $value; }…Continue reading