/** * Change the payment delimiter in the email notification * * @link https://wpforms.com/developers/how-to-change-the-payment-delimiter-inside-email-notifications/ */ function wpf_dev_entry_email_data( $fields, $entry, $form_data ) { // Only run on my form with ID = 310 if ( absint( $form_data[ ‘id’ ] ) !==…Continue reading
/** * WPForms Add new address field scheme (Custom) * * @link https://wpforms.com/developers/create-additional-schemes-for-the-address-field/ */ function wpf_new_address_scheme( $schemes ) { $schemes[ ‘custom’ ] = array( ‘label’ => ‘Custom’, ‘address1_label’ => ‘Address Line 1’, ‘address2_label’ => ‘Address Line 2’, ‘city_label’ => ‘City’,…Continue reading
add_filter(‘the_generator’, ‘__return_empty_string’);Continue reading
/** * Add a profile form using Post Submissions * * @link https://wpforms.com/developers/how-to-build-an-profile-form-using-post-submissions/ */ function wpf_post_submission_custom_content( $post_id, $fields, $form_data, $entry_id ) { // Only do this for form #1089. if ( absint( $form_data[ ‘id’ ] ) !== 1089 ) {…Continue reading
add_filter( ‘login_errors’, function ( $error ) { // Edit the line below to customize the message. return ‘Something is wrong!’; } );Continue reading
google.com, pub-9567597566014925, DIRECT, f08c47fec0942fa0Continue reading
// Crea un endpoint REST API personalizado en WordPress add_action(‘rest_api_init’, function () { error_log(“Registro de endpoint ejecutado.”); // Para depuración register_rest_route(‘push/v1’, ‘/save-push-token/’, array( ‘methods’ => ‘POST’, ‘callback’ => ‘guardar_push_token’, ‘permission_callback’ => ‘__return_true’ )); }); // Función para manejar la solicitud…Continue reading
function sby_videos_taxonomy() { register_taxonomy( ‘video_categories’, ‘sby_videos’, array( ‘hierarchical’ => true, ‘label’ => ‘Video Categories’, ‘query_var’ => true, ‘rewrite’ => array( ‘slug’ => ‘video-category’, ‘with_front’ => false ) ) ); } add_action( ‘init’, ‘sby_videos_taxonomy’);Continue reading
/** * Add a collection of radio selections to the donation form. * * This snippet only works in Charitable 1.5 or above. * */ function wpchar_charitable_register_new_radios_field() { if ( ! class_exists(“Charitable_Donation_Field” ) ) { return; }; /** * Define…Continue reading
// Enable automatic updates for WordPress core, plugins, and themes add_filter(‘automatic_updater_disabled’, ‘__return_false’); add_filter(‘auto_update_core’, ‘__return_true’); add_filter(‘auto_update_plugin’, ‘__return_true’); add_filter(‘auto_update_theme’, ‘__return_true’);Continue reading