Skip Navigation

[Resuelto] wpt_field_options stopped working

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

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 hace 7 años. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

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)

Este tema contiene 16 respuestas, tiene 3 mensajes.

Última actualización por Christian Cox hace 6 años, 10 meses.

Asistido por: Christian Cox.

Autor
Mensajes
#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.