Skip Navigation

[Résolu] wpt_field_options stopped working

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem: The custom options I have applied to a CRED field using the wpt_field_options filter are no longer working.

Solution: Update to the latest version to fix the bug with the wpt_field_options filter.

This support ticket is created Il y a 7 années. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Ce sujet contient 16 réponses, a 3 voix.

Dernière mise à jour par Christian Cox Il y a 6 années et 10 mois.

Assisté par: Christian Cox.

Auteur
Publications
#608831

Hi

I have similar issue. In my case the filter doesn't seem to be triggered. No "triggered" text in error_log.txt:

add_filter( 'wpt_field_options', 'owp_fc_prefix_custom_options', 10, 3);
function owp_fc_prefix_custom_options($options, $title, $type) {
    error_log('triggered');
    switch ($title) {
            case 'ano': 
                $options = array();
                $options[2014] = "2014";
                $options[2015] = "2015";
                $options[2016] = "2016";
                break;
    }
     return $options;
}

I have correct configuration in wp-config.php

define('WP_DEBUG', true);

ini_set('log_errors',TRUE);
ini_set('error_reporting', E_ALL);
ini_set('error_log', dirname(__FILE__) . '/error_log.txt');

Any idea?

Thanks

#608898

IgorU, please update to the latest version of our plugins to apply the fix that was mentioned in this ticket. If this does not resolve the problem, please open a new ticket so we can investigate as soon as possible.