ALMFilters::alm_get_all_filters(), 'prefix' => ALM_FILTERS_PREFIX, 'remove_active_filter' => __( 'Remove', 'ajax-load-more' ), ] ); // Localized Filters JS variables. } } } /** * Add custom block category. * * @param array $categories The existing block categories. * @return array New array of categories. */ public function alm_add_block_category( $categories ) { return array_merge( [ [ 'slug' => 'ajax-load-more', 'title' => 'Ajax Load More', ], ], $categories ); } /** * Display a block editor message for site editors. * * @param string $title The title of the message. * @param string $desc The description of the message. * @return void */ public static function alm_block_editor_message( $title, $desc ) { if ( defined( 'REST_REQUEST' ) && REST_REQUEST ) { ?>