Support » Fixing WordPress » nonce_life breaks customizer

  • Hello

    When I add following code:

    add_filter( 'nonce_life', function () { return 30 * DAY_IN_SECONDS; } );

    to the functions.php file (for example twenty nineteen theme) then customizer options aren’t updated after save. Code won’t break customizer if I use it in the plugin but why it breaks customizer if I use it in the functions.php file of any theme?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.