Skip to main content

Actions

The 24 stable actions of Poly Community, read from the code. The plugin runs 559 hooks named poly_community_ in all, and only these are kept from one release to the next. Each says where it runs and what it is given.

poly_community_item_created​

function my_plugin_item_created( $item_id, $item ) {
// …
}
add_action( 'poly_community_item_created', 'my_plugin_item_created', 10, 2 );
ArgumentAs the plugin passes it
$item_id(int) $item->id
$item$item

Runs in inc/activity.php:2365, inc/wp-posts.php:351.

poly_community_item_deleted​

function my_plugin_item_deleted( $item_id, $item ) {
// …
}
add_action( 'poly_community_item_deleted', 'my_plugin_item_deleted', 10, 2 );
ArgumentAs the plugin passes it
$item_id(int) $item_id
$item$item

Runs in inc/activity.php:3627, inc/activity.php:3685, inc/activity.php:3725 and 4 more.

poly_community_item_updated​

function my_plugin_item_updated( $item_id, $item, $before ) {
// …
}
add_action( 'poly_community_item_updated', 'my_plugin_item_updated', 10, 3 );
ArgumentAs the plugin passes it
$item_id(int) $item->id
$item$item
$before$before

Runs in inc/activity.php:3088, inc/lifetimes.php:757, inc/wp-posts.php:374 and 5 more.

poly_community_kit_settings_saved​

function my_plugin_kit_settings_saved( $saved ) {
// …
}
add_action( 'poly_community_kit_settings_saved', 'my_plugin_kit_settings_saved' );

Runs in inc/kits.php:1271.

poly_community_kits_changed​

function my_plugin_kits_changed( $changed ) {
// …
}
add_action( 'poly_community_kits_changed', 'my_plugin_kits_changed' );

Runs in inc/kits.php:1288.

poly_community_register_access_rules​

function my_plugin_register_access_rules( $access ) {
// …
}
add_action( 'poly_community_register_access_rules', 'my_plugin_register_access_rules' );
ArgumentAs the plugin passes it
$access$this

Runs in inc/access.php:176.

poly_community_register_attachments​

function my_plugin_register_attachments( $attachments ) {
// …
}
add_action( 'poly_community_register_attachments', 'my_plugin_register_attachments' );
ArgumentAs the plugin passes it
$attachments$this

Runs in inc/attachments.php:105.

poly_community_register_catalogs​

function my_plugin_register_catalogs( $catalogs ) {
// …
}
add_action( 'poly_community_register_catalogs', 'my_plugin_register_catalogs' );
ArgumentAs the plugin passes it
$catalogs$this

Runs in inc/catalogs.php:146.

poly_community_register_data_kinds​

function my_plugin_register_data_kinds( $data_admin ) {
// …
}
add_action( 'poly_community_register_data_kinds', 'my_plugin_register_data_kinds' );
ArgumentAs the plugin passes it
$data_admin$this

Runs in inc/data-admin.php:107.

poly_community_register_forms​

function my_plugin_register_forms( $forms ) {
// …
}
add_action( 'poly_community_register_forms', 'my_plugin_register_forms' );
ArgumentAs the plugin passes it
$forms$this

Runs in inc/forms.php:348.

poly_community_register_icons​

function my_plugin_register_icons( $icons ) {
// …
}
add_action( 'poly_community_register_icons', 'my_plugin_register_icons' );
ArgumentAs the plugin passes it
$icons$this

Runs in inc/icons.php:182.

poly_community_register_jobs​

function my_plugin_register_jobs( $queue ) {
// …
}
add_action( 'poly_community_register_jobs', 'my_plugin_register_jobs' );
ArgumentAs the plugin passes it
$queue$this

Runs in inc/queue.php:144.

poly_community_register_kits​

function my_plugin_register_kits( $kits ) {
// …
}
add_action( 'poly_community_register_kits', 'my_plugin_register_kits' );
ArgumentAs the plugin passes it
$kits$this

Runs in inc/kits.php:163.

poly_community_register_lists​

function my_plugin_register_lists( $live_data ) {
// …
}
add_action( 'poly_community_register_lists', 'my_plugin_register_lists' );
ArgumentAs the plugin passes it
$live_data$this

Runs in inc/live-data.php:1522.

poly_community_register_post_kinds​

function my_plugin_register_post_kinds( $post_kinds ) {
// …
}
add_action( 'poly_community_register_post_kinds', 'my_plugin_register_post_kinds' );
ArgumentAs the plugin passes it
$post_kinds$this

Runs in inc/post-kinds.php:69.

poly_community_register_relationship_types​

function my_plugin_register_relationship_types( $relationships ) {
// …
}
add_action( 'poly_community_register_relationship_types', 'my_plugin_register_relationship_types' );
ArgumentAs the plugin passes it
$relationships$this

Runs in inc/relationships.php:111.

poly_community_register_review_targets​

function my_plugin_register_review_targets( $reviews ) {
// …
}
add_action( 'poly_community_register_review_targets', 'my_plugin_register_review_targets' );
ArgumentAs the plugin passes it
$reviews$this

Runs in inc/reviews.php:264.

poly_community_register_row_types​

function my_plugin_register_row_types( $live_data ) {
// …
}
add_action( 'poly_community_register_row_types', 'my_plugin_register_row_types' );
ArgumentAs the plugin passes it
$live_data$this

Runs in inc/live-data.php:430.

poly_community_register_search_kinds​

function my_plugin_register_search_kinds( $search ) {
// …
}
add_action( 'poly_community_register_search_kinds', 'my_plugin_register_search_kinds' );
ArgumentAs the plugin passes it
$search$this

Runs in inc/search.php:267.

poly_community_register_seller_kinds​

function my_plugin_register_seller_kinds( $earnings ) {
// …
}
add_action( 'poly_community_register_seller_kinds', 'my_plugin_register_seller_kinds' );
ArgumentAs the plugin passes it
$earnings$this

Runs in inc/earnings.php:153.

poly_community_register_settings_rows​

function my_plugin_register_settings_rows( $settings_rows ) {
// …
}
add_action( 'poly_community_register_settings_rows', 'my_plugin_register_settings_rows' );
ArgumentAs the plugin passes it
$settings_rows$this

Runs in inc/settings-rows.php:128.

poly_community_register_signals​

function my_plugin_register_signals( $signals ) {
// …
}
add_action( 'poly_community_register_signals', 'my_plugin_register_signals' );
ArgumentAs the plugin passes it
$signals$this

Runs in inc/signals.php:59.

poly_community_register_trees​

function my_plugin_register_trees( $terms ) {
// …
}
add_action( 'poly_community_register_trees', 'my_plugin_register_trees' );
ArgumentAs the plugin passes it
$terms$this

Runs in inc/terms.php:98.

poly_community_register_ui​

function my_plugin_register_ui( $ui ) {
// …
}
add_action( 'poly_community_register_ui', 'my_plugin_register_ui' );
ArgumentAs the plugin passes it
$ui$this

Runs in inc/ui.php:306.