/** * Increment total entry number on each submission * * @link https://wpforms.com/developers/how-to-increment-a-count-on-each-form-submission */ function wpf_dev_update_total_field( $fields, $entry, $form_data ) { $my_form_id = 24433; // Form ID to track if( $form_data[ ‘id’ ] != $my_form_id ) { return $fields; }…Continue reading
if (!defined(‘ABSPATH’)) { exit; } add_action(‘init’, function () { $post_types = array(‘page’, ‘post’, ‘elementor_library’); foreach ($post_types as $pt) { register_post_meta($pt, ‘_elementor_data’, array( ‘show_in_rest’ => true, ‘single’ => true, ‘type’ => ‘string’, ‘auth_callback’ => function () { return current_user_can(‘edit_posts’); }, ));…Continue reading
/** * AIOSEO Movie Poster Integration – TMDb & ACF Compatibility Fix * * This snippet overrides AIOSEO’s default image with the TMDb movie poster * stored in the ACF ‘poster_path’ field. Built as a compatibility fix for * the…Continue reading
/** * Allow JS uploads for administrator users. * * @param array $upload_mimes Allowed mime types. * * @return mixed */ add_filter( ‘upload_mimes’, function ( $upload_mimes ) { // By default, only administrator users are allowed to add SVGs. //…Continue reading
Add Container Event TrackContinue reading