It’s a filter hook, responsible for rendering the title and content on the post templates. It has the following arguments respectively.
- display => It’s the actual data that will be rendered
- post_id => The ID of the current post
- key => meta_key provided in the settings
- length => Maximum Number of Words provided in the settings
- Settings => It’s an array of all the options and values of the current slider.
Example
add_filter( 'rpc_display_meta_data', 'rpc_change_content', 10, 5 ); function rpc_change_content($display, $post_id, $key, $length, $carousel_settings){ if ($post_id == '45') { return 'Contents are hidden'; } return $display; }