Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi AndyiBM,

    I’ve just had a look at the AddQuickTags other notes page where it mentions adding support for custom post types. You can add the following code to your themes functions.php file and Spots will be added to the AddQuickTags settings page:

    // add custom function to filter hook 'addquicktag_post_types'
    add_filter( 'addquicktag_post_types', 'my_addquicktag_post_types' );
    /**
     * Return array $post_types with custom post types
     *
     * @param   $post_type Array
     * @return  $post_type Array
     */
    function my_addquicktag_post_types( $post_types ) {
    
        $post_types[] = 'spot';
    
        return $post_types;
    }

    I would also suggest change the function names to make it a bit more descriptive, but it should work without changing it.

    Let me know if that doesn’t work and I’ll see if there is anything else I can do.

    Thread Starter AndyiBM

    (@andyibm)

    Awe-some – thank you Andy… I feel bad I hadn’t found this in their docs myself…

    Works perfectly.

    Cheers ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can't assign AddQuickTags to Spots’ is closed to new replies.