Skip to content
This repository has been archived by the owner on Mar 29, 2021. It is now read-only.

Developer Hooks

Derek Sifford edited this page Aug 22, 2017 · 1 revision

Filters

Actions

None at this time. Feel free to submit a request.


abt_disabled_post_types

Description

Allows users to add or remove WordPress post-types for which ABT will not be loaded.

Parameters

$post_types : string[]
The post-types for which ABT is disabled.
Default: ['acf', 'um_form']

Example

Disables ABT on posts where the post type is my-custom-post-type.

<?php

function disabled_abt_post_types($post_types) {
    $post_types[] = 'my-custom-post-type';
    return $post_types;
}
add_filter('abt_disabled_post_types', 'disabled_abt_post_types');
Clone this wiki locally