@@ -62,17 +62,17 @@ public function __construct() {
6262     * @return void 
6363     */ 
6464    public  function  hooks () : void  {
65-         add_action ( 'init ' , Closure::fromCallable ( [ $ this  , 'register '  ] ), 15  );
66-         add_filter ( 'tms/gutenberg/blocks ' , Closure::fromCallable ( [ $ this  , 'allowed_blocks '  ] ), 10 , 1  );
65+         \ add_action ( 'init ' , Closure::fromCallable ( [ $ this  , 'register '  ] ), 15  );
66+         \ add_filter ( 'tms/gutenberg/blocks ' , Closure::fromCallable ( [ $ this  , 'allowed_blocks '  ] ), 10 , 1  );
6767
68-         add_filter (
68+         \ add_filter (
6969            'tms/base/breadcrumbs/before_prepare ' ,
7070            Closure::fromCallable ( [ $ this  , 'format_single_breadcrumbs '  ] ),
7171            10 ,
7272            3 
7373        );
7474
75-         add_filter ( 'redipress/schema_fields ' , function  ( $ fields  ) {
75+         \ add_filter ( 'redipress/index/posts /schema_fields ' , function  ( $ fields  ) {
7676            $ fields [] = new  TextField ( [
7777                'name '      => 'artists ' ,
7878                'sortable '  => true ,
@@ -81,15 +81,15 @@ public function hooks() : void {
8181            return  $ fields ;
8282        }, PHP_INT_MAX , 1  );
8383
84-         add_filter ( 'redipress/additional_field/artists ' , function  ( $ value , $ post_id , $ post  ) {
84+         \ add_filter ( 'redipress/additional_field/artists ' , function  ( $ value , $ post_id , $ post  ) {
8585            if  ( $ post ->post_type  === Artwork::SLUG  ) {
86-                 $ value  = get_post_meta ( $ post_id , 'artists ' , true  );
86+                 $ value  = \ get_post_meta ( $ post_id , 'artists ' , true  );
8787            }
8888
8989            return  $ value ;
9090        }, 10 , 3  );
9191
92-         add_filter ( 'redipress/search_fields ' , function  ( $ fields  ) {
92+         \ add_filter ( 'redipress/search_fields ' , function  ( $ fields  ) {
9393            $ fields [] = 'artists ' ;
9494
9595            return  $ fields ;
0 commit comments