Cornerstone icon
Utilities

Cornerstone hooks reference

  • By Archetyped
  • v0.8.1
  • Updated

Cornerstone 0.8.1 has 5 actions and 6 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
// Run your own code when Cornerstone fires an action
add_action( 'cnr_content_types_registered', function( $cnr_content_types ) {
	// Your code runs here.
}, 10, 1 );

// Change a value Cornerstone is about to use
add_filter( 'cnr_process_placeholder', function( $target_property, $object, $instance, $layout, $data ) {
	// Change $target_property here.
	return $target_property;
}, 10, 5 );

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

  • includes/class.content_utilities.php line 448
    do_action_ref_array( "{$menu_hook}_{$id}", array(&$type) );
  • includes/class.content_utilities.php line 172
    do_action_ref_array( 'cnr_content_types_registered', array(&$cnr_content_types) );
  • includes/class.field_type.php line 471
    apply_filters( 'cnr_process_placeholder', $target_property, $this, $instance, $layout, $data );
  • includes/class.field_type.php line 467
    apply_filters( "cnr_process_placeholder_{$tag}", '', $this, $instance, $layout, $data );
  • includes/class.content_utilities.php line 169
    do_action_ref_array( 'cnr_register_content_types', array(&$cnr_content_types) );
  • includes/class.content_utilities.php line 164
    do_action_ref_array( 'cnr_register_field_types', array(&$cnr_field_types) );
  • includes/class.content_utilities.php line 1224
    apply_filters( 'cnr_the_item_data', $this->get_item_data($item, $field, $layout, $default, $attr), $item, $field, $layout, $default, $attr );
  • includes/class.content_utilities.php line 646
    apply_filters( 'edit_posts_per_page', $posts_per_page );
  • includes/class.media.php line 124
    apply_filters( 'image_upload_iframe_src', $media_upload_iframe_src . '?' . http_build_query($query) );
  • post_stati

    filter
    includes/class.content_utilities.php line 616
    apply_filters( 'post_stati', $post_stati );
  • includes/class.content_utilities.php line 860
    do_action( 'restrict_manage_posts' );

Generated from Cornerstone'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: