Conditionally display featured image on singular posts and pages icon
Media, Galleries & Sliders

Conditionally display featured image on singular posts and pages hooks reference

Conditionally display featured image on singular posts and pages 3.5.0 has 0 actions and 7 filters, read directly from its source code on Nov 20, 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 Conditionally display featured image on singular posts and pages is about to use
add_filter( 'cibocfi_checkbox_label', function( $label ) {
	// Change $label here.
	return $label;
}, 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.

Changes by version

3.4.0 → 3.5.0 · Nov 20, 2026 · 0 added, 0 removed

No hooks were added or removed in this release.

All hooks

  • include/class-conditional-featured-image-admin.php line 143
    /**
     * Filter the label of the checkbox in the featured image meta box.
     */
    apply_filters( 'cibocfi_checkbox_label', $label );
  • include/class-conditional-featured-image-util.php line 31
    /**
     * Allow to disable the plugin for certain post types.
     */
    apply_filters( 'cybocfi_enabled_for_post_type', true, $post_type );
  • include/class-conditional-featured-image-admin.php line 387
    /**
     * Filter hook to hide the image by default for any new posts and pages
     * (preselecting the checkbox).
     */
    apply_filters( 'cybocfi_hide_by_default', false, $post_type );
  • include/class-conditional-featured-image-frontend.php line 361
    /**
     * Bypass circuit in_the_loop() test.
     */
    apply_filters( 'cybocfi_only_hide_in_the_loop', true );
  • include/class-conditional-featured-image-util.php line 46
    /**
     * DEPRECATED. Allow to disable the plugin for certain post types.
     */
    apply_filters_deprecated( 'cybocfi_post_type', array( $post_type, true ), '2.11.0', 'cybocfi_enabled_for_post_type', 'See <a href="https://wordpress.org/plugins/conditionally-display-featured-image-on-singular-pages/#faq-header">FAQ</a> for further assistance.' );
  • include/class-conditional-featured-image-frontend.php line 67
    /**
     * Allow customizing the hook, at which the plugin starts hiding the featured
     * image.
     */
    apply_filters( 'cybocfi_startup_hook', 'loop_start' );
  • include/class-conditional-featured-image-frontend.php line 424
    /**
     * Filter styles to hide space usually reserved for the image
     */
    apply_filters( 'cybocfi_woocommerce_style_overrides', $styles );

Generated from Conditionally display featured image on singular posts and pages'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.

Plugin 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 this

Not 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: