Filter: sensei_course_meta_default_save

apply_filters( 'sensei_course_meta_default_save', $do_save, $post_id, $meta_key, $new_meta_value ) → {bool}

Filter whether or not to run the default save functionality for the meta. This may be used with the "sensei_course_meta_before_save" action to create custom save functionality for specific meta.

Parameters:
Name Type Description
$do_save bool

Whether or not to do the default save.

$post_id int

The course ID.

$meta_key string

The meta to be saved.

$new_meta_value mixed

The meta value to be saved.

Since:
  • 2.2.0
Source:
Returns:

Whether or not to do the default save.

Type
bool