Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the beflex-pro domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/wpshop/public_html/wp-includes/functions.php on line 6131

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the acf domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/wpshop/public_html/wp-includes/functions.php on line 6131
Ajout du hook catégorie Dolibarr pour WPShop

Ajout du hook catégorie

Pour pouvoir ajouter la catégorie dolibarr dans WordPress, il faut modifier un fichier de dolibarr :

  • se rendre dans le dossier « categorie »
  • editer le fichier « viewcat.php »
  • ajouter le code suivant à la ligne 272
$reshook = $hookmanager->executeHooks('addMoreActionsButtons', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks
if ($reshook < 0) setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');