Action hooks - AleksandarPredic/psm-fields GitHub Wiki

Action hooks

Fired before we render the metabox fields

/**
 * @hook psmfields_metabox_prerender_{metabox_id}
 * @param FacadeInterface $facadeInstance
 * @param \WP_Post $post
 */
do_action(
    sprintf('psmfields_metabox_prerender_%s', $this->id),
    $this->facadeInstance, // Your created metabox class instance
    $post
);

Fired after we render the metabox fields

/**
 * @hook psmfields_metabox_after_render_{metabox_id}
 * @param FacadeInterface $facadeInstance
 * @param \WP_Post $post
 */
do_action(
    sprintf('psmfields_metabox_after_render_%s', $this->id),
    $this->facadeInstance, // Your created metabox class instance
    $post
)