imranhsayed / aquila

🎨 An Advanced WordPress theme
1.02k stars 218 forks source link

$post global object #62

Closed Amer-Moh closed 3 years ago

Amer-Moh commented 3 years ago

Hi, I'm trying to use your method to build OOP theme from scratch, everything was good till I got this error: https://i.imgur.com/Kk1fIV4.png when I tried to use block_categories like this https://i.imgur.com/Yohaw00.png :

public function my_block_category( $categories , $post ) {        
    return array_merge(
        $categories,
        array(
            array(
                'slug' => 'trc-blocks',
                'title' => __( 'Site Blocks', 'trc-blocks' ),
            ),
        )
    );
}

Can you help me please?

Amer-Moh commented 3 years ago

Fixed, it was related to the action priority