GN Publisher: Google News Compatible RSS Feeds 1.5.31 has 12 actions and 18 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when GN Publisher: Google News Compatible RSS Feeds fires an action
add_action( 'rss_tag_pre', function( $arg1 ) {
// Your code runs here.
}, 10, 1 );
// Change a value GN Publisher: Google News Compatible RSS Feeds is about to use
add_filter( 'active_plugins', function( $active_plugins ) {
// Change $active_plugins here.
return $active_plugins;
}, 10, 1 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Fires between the xml and rss tags in a feed. */ do_action( 'rss_tag_pre', 'rss2' ); -
/** * Fires at the end of the RSS root to add namespaces. */ do_action( 'rss2_ns' ); -
/** * No Category Base Plugin Compatiblity for enable rewrite rules */ apply_filters( 'active_plugins', get_option( 'active_plugins' ) ); -
/** * Filters the RSS enclosure HTML link tag for the current post. */ apply_filters( 'gnpub_rss_enclosure', '<enclosure url="' . esc_url( trim( $enclosure[0] ) ) . '" length="' . absint( trim( $enclosure[1] ) ) . '" type="' . esc_attr( $type ) . '" />' . "\n" ); -
apply_filters( 'gnpub_localize_filter', $data, 'gnpub_localize_data' ); -
apply_filters( 'gnpub_molongui_authors_compat', $gnpub_authors_escaped ); -
apply_filters( 'gnpub_pp_authors_compat', $gnpub_authors_escaped ); -
apply_filters( 'gnpubpro_translated_title', $result->post_title, $result->ID ); -
apply_filters( 'gnpubpro_translated_url', get_permalink( $result->ID ) ); -
apply_filters( 'excerpt_length', 55 ); -
apply_filters( 'gnpub_enable_feed_support_filter', 0 ); -
apply_filters( 'gnpub_feed_max_posts', 30 ); -
apply_filters( 'gnpub_feed_query_period', 30 * DAY_IN_SECONDS ); -
apply_filters( 'gnpub_modify_anf_request_language', get_locale(), $post_id ); -
do_action( 'gnpub_pro_compat_form' ); -
do_action( 'gnpub_pro_cpt_form' ); -
do_action( 'gnpub_pro_license_form' ); -
apply_filters( 'gnpub_pro_multilingual_support', '' ); -
do_action( 'gnpub_pro_setup_form' ); -
do_action( 'gnpub_render_apple_news_compatibility' ); -
do_action( 'gnpub_render_compatibility_modals' ); -
do_action( 'gnpub_render_google_news_follow' ); -
do_action( 'gnpub_render_yandex_turbo_compatibility' ); -
do_action( 'gnpub_sitemap_form' ); -
apply_filters( 'gnpubpro_sitemap_links', '<a href="'.get_site_url().'/gn_sitemap.xml" target="_blank">View your News Sitemap.</a>' ); -
apply_filters( 'rss_update_frequency', $gnpub_frequency ); -
apply_filters( 'rss_update_period', $duration ); -
do_action( 'rss2_item', $post_id ); -
apply_filters( 'self_link', get_self_link() ); -
apply_filters( 'the_content', $post->post_content );
Generated from GN Publisher: Google News Compatible RSS Feeds's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: