Custom Placeholder Handler

Description

Use this filter to return the custom placeholder value for assignment/reminder emails. You will also need to implement the custom placeholder  hook for this handler to work.

Usage


add_filter( 'oasiswf_custom_placeholders_handler', 'get_submitter_placeholder_value', 10, 1 );

Parameters

  • $post- Post object

Example


add_filter( 'oasiswf_custom_placeholders', 'get_submitter_placeholder_value' );

function get_submitter_placeholder_value( $post ) {
   $user_id = get_current_user_id();
   $user_details = get_userdata( $user_id );
   $user_name = $user_details->data->display_name;
   $custom_placeholders_values = array(
      '%workflow_submitter%' => $user_name
   );
   return $custom_placeholders_values; 
}

Source Code

The filter is located in oasis-workflow-pro/includes/class-ow-email.php

Didn't find what you are looking for? Submit a Query

Custom PlaceholderCustom Menu Position Filter