Skip to content

Instantly share code, notes, and snippets.

@labboy0276
Created May 12, 2020 17:02
Show Gist options
  • Save labboy0276/9ca025ee32681b9981541dd16178d090 to your computer and use it in GitHub Desktop.
Save labboy0276/9ca025ee32681b9981541dd16178d090 to your computer and use it in GitHub Desktop.
Adds a filter to the FacetWP Alpha output
diff --git a/class-alpha.php b/class-alpha.php
index b70c8b1..76b888a 100644
--- a/class-alpha.php
+++ b/class-alpha.php
@@ -86,7 +86,7 @@ class FacetWP_Facet_Alpha_Addon extends FacetWP_Facet
}
}
- return $output;
+ return apply_filters( 'facetwp_alpha_render', $output );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment