Newpost Catch icon
Content & Editing

Newpost Catch hooks reference

  • By Tetsuya Imamura
  • v1.4.0
  • Updated

Newpost Catch 1.4.0 has 0 actions and 13 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.

functions.phpyour child theme
// Change a value Newpost Catch is about to use
add_filter( 'NewpostCatch_widget_post_type', function( $instance ) {
	// Change $instance here.
	return $instance;
}, 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

  • class.php line 105 · used in 2 places
    apply_filters( 'NewpostCatch_widget_post_type', $instance['post_type'] );
  • class.php line 102
    apply_filters( 'NewpostCatch_widget_cat', $instance['cat'] );
  • class.php line 101
    apply_filters( 'NewpostCatch_widget_css', $instance['css']['active'] );
  • class.php line 98
    apply_filters( 'NewpostCatch_widget_height', $instance['height'] );
  • class.php line 100
    apply_filters( 'NewpostCatch_widget_ignore', $instance['ignore_check']['active'] );
  • class.php line 99
    apply_filters( 'NewpostCatch_widget_number', $instance['number'] );
  • class.php line 96
    apply_filters( 'NewpostCatch_widget_title', $instance['title'] );
  • class.php line 97
    apply_filters( 'NewpostCatch_widget_width', $instance['width'] );
  • class.php line 150
    apply_filters( 'npc_post_permalink', get_permalink(), $post_id );
  • class.php line 149
    apply_filters( 'npc_post_title', get_the_title(), $post_id );
  • class.php line 356
    apply_filters( 'npc_sc_post_permalink', esc_url( get_permalink() ), $post_id );
  • class.php line 355
    apply_filters( 'npc_sc_post_title', '<span class="title">' . esc_html( get_the_title() ) . '</span>', $post_id );
  • npc_thumb

    filter
    class.php line 21
    apply_filters( 'npc_thumb', $this->pluginDir . '/no_thumb.png' );

Generated from Newpost Catch's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.

Can't find the right hook?

We can build the customisation for you. Describe what you need: