Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$post global object #62

Closed
Amer-Moh opened this issue Jun 20, 2021 · 1 comment
Closed

$post global object #62

Amer-Moh opened this issue Jun 20, 2021 · 1 comment

Comments

@Amer-Moh
Copy link

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
Copy link
Author

Fixed, it was related to the action priority

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant