Making WordPress.org


Ignore:
Timestamp:
11/23/2022 06:22:00 PM (3 years ago)
Author:
amieiro
Message:

Translate: Add mentions to comment box and Disable only Feedback <summary> events

https://github.com/GlotPress/gp-translation-helpers/pull/113
https://github.com/GlotPress/gp-translation-helpers/pull/143

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/includes/class-wporg-customizations.php

    r12003 r12274  
    4444                2
    4545            );
     46
     47            add_filter( 'jetpack_mentions_should_load_ui', '__return_true' );
     48            add_filter(
     49                'jetpack_mentions_allowed_post_types',
     50                function( $post_types ) {
     51                    $post_types[] = Helper_Translation_Discussion::POST_TYPE;
     52                    return $post_types;
     53                }
     54            );
     55
    4656        }
    4757    }
Note: See TracChangeset for help on using the changeset viewer.