Title: jumpy2015's Replies | WordPress.org

---

# jumpy2015

  [  ](https://wordpress.org/support/users/jumpy2015/)

 *   [Profile](https://wordpress.org/support/users/jumpy2015/)
 *   [Topics Started](https://wordpress.org/support/users/jumpy2015/topics/)
 *   [Replies Created](https://wordpress.org/support/users/jumpy2015/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/jumpy2015/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/jumpy2015/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/jumpy2015/engagements/)
 *   [Favorites](https://wordpress.org/support/users/jumpy2015/favorites/)

 Search replies:

## Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Telegram (Auto Post and Notifications)] wptelegram_add_custom_fields filter](https://wordpress.org/support/topic/wptelegram_add_custom_fields-filter/)
 *  Thread Starter [jumpy2015](https://wordpress.org/support/users/jumpy2015/)
 * (@jumpy2015)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/wptelegram_add_custom_fields-filter/#post-9156530)
 * Thanks a lot Manzoor, your new filters are exactly what I was looking for
    I’ve
   just installed in production environmnent your great plugin, thanks again
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Telegram (Auto Post and Notifications)] wptelegram_add_custom_fields filter](https://wordpress.org/support/topic/wptelegram_add_custom_fields-filter/)
 *  Thread Starter [jumpy2015](https://wordpress.org/support/users/jumpy2015/)
 * (@jumpy2015)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/wptelegram_add_custom_fields-filter/#post-9112868)
 * Thanks Manzoor,
    I realized that the wptelegram_add_custom_fields is not intended
   for what I need.
 * I played a little with filters, ended up in something like this:
    added in class-
   wptelegram-post-handler.php, after line 446:
 *     ```
       $filterParam = array($wp_tags, $wp_subs);
       $filterOutput = apply_filters( 'wptelegram_user_defined_tags_handler', $filterParam, $post);
       $wp_tags = $filterOutput[0];
       $wp_subs = $filterOutput[1];
       ```
   
 * sample usage (I put it in my theme functions.php):
 *     ```
       add_filter( 'wptelegram_user_defined_tags_handler', 'telegram_user_defined_tags_handler', 10, 2);
   
       /*
       input: array containings 2 arrays: 
       	values[0] => array of tags
       	values[1] => array of replacement for each tag found in template
       */
       function telegram_user_defined_tags_handler(array $values, WP_Post $post){
       	$values[0][] = '{url_encoded}';
       	$values[1][] =  urlencode(get_permalink($post->ID));
   
       	$values[0][] = '{uppercase_title}';
       	$values[1][] = strtoupper($post->post_title);
       	return $values;
       }
       ```
   
 * use it as you want if you think it can be useful for implementing the filters
   you were talking about.
    Maybe It would be nice to have a similar filter called
   in get_macros() functions (class-wptelegram-admin-settings.php)
 * Thanks for your great plugin, and please keep me informed if you implement the
   above filters
    -  This reply was modified 9 years, 3 months ago by [jumpy2015](https://wordpress.org/support/users/jumpy2015/).
      Reason: edited sample code
    -  This reply was modified 9 years, 3 months ago by [jumpy2015](https://wordpress.org/support/users/jumpy2015/).
      Reason: edited sample code
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery] "other options" panel saves other roles](https://wordpress.org/support/topic/other-options-panel-saves-other-roles/)
 *  [jumpy2015](https://wordpress.org/support/users/jumpy2015/)
 * (@jumpy2015)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/other-options-panel-saves-other-roles/#post-8906737)
 * what the Reset Tool is expected to do? I mean, just resetting some settings or
   reset also the galleries created with nextGen? (the second would make it useless
   for me…)
    -  This reply was modified 9 years, 5 months ago by [jumpy2015](https://wordpress.org/support/users/jumpy2015/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery] "other options" panel saves other roles](https://wordpress.org/support/topic/other-options-panel-saves-other-roles/)
 *  [jumpy2015](https://wordpress.org/support/users/jumpy2015/)
 * (@jumpy2015)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/other-options-panel-saves-other-roles/#post-8898738)
 * I’m in the same trouble: I assigned for every permission “some custom role”, 
   which now I know I should not have done.
    Anyway, now I cannot handle nextgen
   settings any more: even if I enter with a member have “some custom role”, there
   is no way to enter in nextgen admin page.
 * I understand that I did something wrong, now how can repair it?
    can I run a 
   query such “update sometable set somefiled = ‘administrator’ where ….”?
 * By the way, I think you should at least remove from the combo boxes the roles
   you know you don’t handle, so user can’t do something wrong.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Telegram for WP] %custom field name% DOES NOT WORK](https://wordpress.org/support/topic/custom-field-name-does-not-work/)
 *  [jumpy2015](https://wordpress.org/support/users/jumpy2015/)
 * (@jumpy2015)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/custom-field-name-does-not-work/#post-8229738)
 * Same problem for me (version 1.6.1)

Viewing 5 replies - 1 through 5 (of 5 total)