Custom Fields
Re-Envisioned
Support MB Settings Page Take settings values in add_action( 'init' Reply To: Take settings values in add_action( 'init'

#13819

I undersntand…But in the same function that I use his fields of metabox settings I registered the cpt:

I take this values in Metabox:

$mb_activacion_articulo = rwmb_meta( 'modulo_articulos_activacion', array( 'object_type' => 'setting' ), 'multi_tema_privado' );
if ($mb_activacion_articulo == 1) $show_articulo = true;    
$mb_slug_articulo = rwmb_meta( 'modulo_articulos_slug', array( 'object_type' => 'setting' ), 'multi_tema_privado' );

And I registered the cpt:

                'rewrite' => array('slug' => $slug_articulo),
        'show_in_menu'        => $show_articulo,
        'show_in_nav_menus'   => $show_articulo,
        'show_in_admin_bar'   => $show_articulo,
    register_post_type( 'articulo', $args );

If I put some value priority more than 20. When I save the settings, the canghes will appear not after the refresh save, I have to refresh another time.

It’s ok my explain?

Thanks