Support » Plugin: Publicize With Hashtags » please add apply_filters and do_action hooks

  • nicmare

    (@nicmare)


    great plugin and works out of the box!
    but please explain how to modify $mess_max_length and $strip_spaces without modifying your plugin file?!
    we need some filters here. and please add a do_action hook for adding some custom hashtags by default. i.e. i have a post_type called “cars” and with each post, i want to add “#car” without tagging it each time by hand.
    something like this would be nice:
    line 92 of publicize-with-hashtags.php add:
    do_action("hashtags_append");

    then in my functions.php i can write:

    function hashtags_append_static(){
    	global $mess, $post;
    	if(get_post_type() == "cars") return $mess .= ' #cars';
    	return;
    }
    add_action("hashtags_append","hashtags_append_static");

  • The topic ‘please add apply_filters and do_action hooks’ is closed to new replies.