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.
// 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
-
cnr_content_types_registered
actiondo_action_ref_array( 'cnr_content_types_registered', array(&$cnr_content_types) ); -
cnr_process_placeholder
filterapply_filters( 'cnr_process_placeholder', $target_property, $this, $instance, $layout, $data ); -
apply_filters( "cnr_process_placeholder_{$tag}", '', $this, $instance, $layout, $data ); -
cnr_register_content_types
actiondo_action_ref_array( 'cnr_register_content_types', array(&$cnr_content_types) ); -
cnr_register_field_types
actiondo_action_ref_array( 'cnr_register_field_types', array(&$cnr_field_types) ); -
cnr_the_item_data
filterapply_filters( 'cnr_the_item_data', $this->get_item_data($item, $field, $layout, $default, $attr), $item, $field, $layout, $default, $attr ); -
edit_posts_per_page
filterapply_filters( 'edit_posts_per_page', $posts_per_page ); -
image_upload_iframe_src
filterapply_filters( 'image_upload_iframe_src', $media_upload_iframe_src . '?' . http_build_query($query) ); -
post_stati
filterapply_filters( 'post_stati', $post_stati ); -
restrict_manage_posts
actiondo_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: