Skip to content

Instantly share code, notes, and snippets.

View liamhiggins22's full-sized avatar

Liam Higgins liamhiggins22

View GitHub Profile
add_filter( 'bricks/setup/control_options', function( $control_options ) {
$control_options['queryTypes']['reviews'] = esc_html__( 'WP Social Ninja Reviews', 'pixite-reviews' );
return $control_options;
} );
add_filter( 'bricks/query/run', function( $results, $query_obj ) {
if ( $query_obj->object_type !== 'reviews' ) {
return $results;
}
{
"name": "sage",
"homepage": "https://roots.io/sage/",
"authors": [
"Ben Word <[email protected]>"
],
"license": "MIT",
"private": true,
"dependencies": {
"bootstrap": "^4.1.0",
/**
* Theme assets
*/
function assets() {
wp_enqueue_style('sage/css', Assets\asset_path('styles/main.css'), false, null);
if (is_single() && comments_open() && get_option('thread_comments')) {
wp_enqueue_script('comment-reply');
}
{
"dependencies": {
"main.js": {
"files": [
"scripts/main.js"
],
"main": true
},
"main.css": {
"files": [
{
"name": "sage",
"homepage": "https://roots.io/sage/",
"authors": [
"Ben Word <[email protected]>"
],
"license": "MIT",
"private": true,
"dependencies": {
"bootstrap": "git://github.com/twbs/bootstrap.git#v4.0.0",