Title: Typo in example code
Last modified: July 6, 2020

---

# Typo in example code

 *  Resolved [Kevin A. Wilson](https://wordpress.org/support/users/kwilson68/)
 * (@kwilson68)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/typo-in-example-code/)
 * On the RSS Aggregator page [https://kb.wprssaggregator.com/article/297-f2p-filter-modify-imported-posts-before-they-are-saved](https://kb.wprssaggregator.com/article/297-f2p-filter-modify-imported-posts-before-they-are-saved),
   the first line in the code is
 * `add_filter( 'wprss_ftp_post_args', 'my_custom_post_args', 10, 2 );`
 * This works fine for the second example, where the function takes two arguments.
   But the first example defines the function as taking three parameters:
 * `function my_custom_post_args( $post, $feed_source, $item )`
 * The add_filter code should therefore have a 3 at the end to indicate the correct
   number of arguments expected:
 * `add_filter( 'wprss_ftp_post_args', 'my_custom_post_args', 10, 3);`
    -  This topic was modified 5 years, 10 months ago by [Kevin A. Wilson](https://wordpress.org/support/users/kwilson68/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ftypo-in-example-code%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [Naweed Chougle](https://wordpress.org/support/users/hypersonic/)
 * (@hypersonic)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/typo-in-example-code/#post-13083458)
 * [@kwilson68](https://wordpress.org/support/users/kwilson68/)
 * Thanks for the heads up.
 * For discussions linked to our premium add-ons, please get in touch with us using
   our website’s support contact form. According to this forum’s guidelines, we 
   are not allowed to discuss premium add-ons.

Viewing 1 replies (of 1 total)

The topic ‘Typo in example code’ is closed to new replies.

 * ![](https://ps.w.org/wp-rss-aggregator/assets/icon-256x256.gif?rev=3157090)
 * [RSS Aggregator - RSS Import, News Feeds, Feed to Post, and Autoblogging](https://wordpress.org/plugins/wp-rss-aggregator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-rss-aggregator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-rss-aggregator/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-rss-aggregator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-rss-aggregator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-rss-aggregator/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Naweed Chougle](https://wordpress.org/support/users/hypersonic/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/typo-in-example-code/#post-13083458)
 * Status: resolved