I did have the same problems – my solution was:
1) delete the token (let it empty)
2) then save the settings
3) then fill in the privat token, save settings an then reactivate
now it works on on my site.
good luck, Werner
I guess it has nothing to do with the token, but maybe with the PHP-dokument – here the snippet:
/**
* Returns a selectbox of available menus
* In case you need extra options in front add them to subtype array. Menus will be appended.
*
* @since 4.5
* @added_by Günter
* @param array $element
* @return string
*/
public function select_menu( array $element )
{
$locations = get_registered_nav_menus();
$menu_locations = array_flip( get_nav_menu_locations() );
$nav_menus = wp_get_nav_menus();
if( ! isset( $element[‘subtype’] ) || ! is_array( $element[‘subtype’] ) )
{
$element[‘subtype’] = array();
}
foreach( $nav_menus as $menu )
{
$key = wp_html_excerpt( $menu->name, 40, ‘…’ );
if( isset( $menu_locations[ $menu->term_id ] ) )
{
if( isset( $locations[ $menu_locations[ $menu->term_id ] ] ) )
{
$key .= ‘ (–> ‘ . wp_html_excerpt( $locations[ $menu_locations[ $menu->term_id ] ], 70, ‘…’ ) . ‘)’;
}
}
$element[‘subtype’][ $key ] = $menu->term_id;
}
return $this->select( $element );
}
Is here anything wrong?
Regards, Werner