• This does not work with Gutenberg according to https://github.com/Automattic/jetpack/issues/11869
    I still use the classic editor.

    1. Download a code snippet plugin.
    2. Add and activate the following snippet:

    // **Set prefix**
    // function set_new_publicize_default_prefix($msg) {
    // return ‘prefix’;
    // }
    // add_filter(‘wpas_default_prefix’, ‘set_new_publicize_default_prefix’);

    // **Return the title**
    function set_new_publicize_default_msg($msg) {
    return $msg;
    }
    add_filter(‘wpas_default_message’, ‘set_new_publicize_default_msg’);

    // **Set suffix (ie. hashtag)**
    function set_new_publicize_default_suffix($msg) {
    return ‘ #hashtag’;
    }
    add_filter(‘wpas_default_suffix’, ‘set_new_publicize_default_suffix’);

    Tested with Twitter, Facebook, and LinkedIn.

  • The topic ‘Alternate solution to add hashtags’ is closed to new replies.