Notice: You are browsing the documentation for PrestaShop 9, which is currently in development.

You might want to read the documentation for the current version, PrestaShop 8. Read the current version of this page

Hook filterCategoryContent

Informations

Filter the content page category This hook is called just before fetching content page category
Hook filterCategoryContent
Locations
FO
Type
Origin core
Aliases

This hook has a $chain parameter set to true (hook will chain the return of hook module, see explaination here).

Located in

Origin File
core controllers/front/listing/CategoryController.php

Parameters details

    <?php
    array(
        'object' => (object) Category object
    ),

Call of the Hook in the origin file

Hook::exec(
            'filterCategoryContent',
            ['object' => $categoryVar],
            $id_module = null,
            $array_return = false,
            $check_exceptions = true,
            $use_push = false,
            $id_shop = null,
            $chain = true
        )