Post Connector 1.0.11 has 15 actions and 11 filters, read directly from its source code on Nov 19, 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 Post Connector fires an action
add_action( 'pc_after_connection_add', function( $connection ) {
// Your code runs here.
}, 10, 1 );
// Change a value Post Connector is about to use
add_filter( 'pc_connection_init', function( $connection ) {
// Change $connection here.
return $connection;
}, 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
-
/** * Action: 'pc_connection_init' - Action that is ran after the connection is * initialized */ apply_filters( 'pc_connection_init', $connection ); -
/** * Action: 'pc_after_connection_add' - Action in ran after a connection is * added */ do_action( 'pc_after_connection_add', $connection ); -
/** * Action: 'pc_after_connection_delete' - Action that is ran after the * connection is deleted */ do_action( 'pc_after_connection_delete', $id ); -
/** * Action: 'pc_after_connection_edit' - Action in ran after a connection is * edited */ do_action( 'pc_after_connection_edit', $connection ); -
/** * Filter: 'pc_apdc_thumbnail_size' - Allows changing the thumbnail size of the * thumbnail in de APDC section */ apply_filters( 'pc_apdc_thumbnail_size', 'post-thumbnail' ); -
/** * Action: 'pc_before_connection_delete' - Action that is ran before the * connection is deleted */ do_action( 'pc_before_connection_delete', $id ); -
/** * Action: 'pc_connection_catch_post' - Action that is ran after the connection * form data is post but before the connection is saved */ apply_filters( 'pc_connection_catch_post', $connection ); -
/** * Action: 'pc_connection_edit_form' - Allow adding custom fields to connection * edit screen */ do_action( 'pc_connection_edit_form', $connection ); -
/** * Action: 'pc_connection_edit_form_display_linked_children' - Allow adding * custom fields to display linked children section */ do_action( 'pc_connection_edit_form_display_linked_children', $connection ); -
/** * Action: 'pc_meta_box_creation_after' - Allow actions to be added in meta box * manage construct */ do_action( 'pc_meta_box_creation_after', $connection ); -
/** * Action: 'pc_meta_box_manage_add_existing_url' - Allow adjusting of 'add * existing' URL */ apply_filters( 'pc_meta_box_manage_add_existing_url', $url, $this->connection ); -
/** * Action: 'pc_meta_box_manage_table_classes' - Allow adjusting meta box manage * table classes */ apply_filters( 'pc_meta_box_manage_table_classes', $table_classes, $this->connection ); -
apply_filters( 'excerpt_length', 20 ); -
apply_filters( 'pc_children_list_header_tag', $header_tag ); -
apply_filters( 'pc_list_excerpt_length', apply_filters( 'excerpt_length', 20 ) ); -
apply_filters( 'pc_manual_link_post_query_args', array( 'post_type' => $this->post_type, 'posts_per_page' => $per_page, 'paged' => $paged, 'suppress_filters' => false, 'orderby' => $orderby, 'order' => $order, 'post_status' => apply_filters( 'pc_manual_link_post_statuses' , array( 'publish', 'private' ) ), ) ); -
apply_filters( 'pc_manual_link_post_statuses', array( 'publish', 'private' ) ); -
apply_filters( 'pc_mb_manage_title', $this->connection->get_title(), $this->connection->get_slug(), $this->connection ); -
do_action( 'pc_sidebar' ); -
do_action( 'sp_after_link_add', $link_id ); -
do_action( 'sp_after_link_delete', $link_id ); -
do_action( 'sp_after_post_type_link_add', $connection_id ); -
do_action( 'sp_after_post_type_link_delete', $id ); -
do_action( 'sp_after_post_type_link_edit', $connection->get_id() ); -
do_action( 'sp_before_link_delete', $link_id ); -
do_action( 'sp_before_post_type_link_delete', $id );
Generated from Post Connector'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: