Add some Hooks
-
HI!
I created an addons for customise memberships plugin but I need to add some hooks,
can you add this hooks, to add more customization:file: core/class-wcfmvm.php: betwin line 358-359
$custom_color_data = apply_filters( 'wcfm_add_membership_custom_css',$custom_color_data);
file: templates/vendor_membership.php:
add this hook
do_action ("wcfm_add_membership_custom_css_class_name",$wcfm_membership);
like this:
line 133
<div class="wcfm_membership_box_wrraper wcfm_membership_box_wrraper_<?php echo $wcfm_membership_id; ?> <?php if( $wcfm_membership_id == $featured_membership ) { echo 'wcfm_featured_membership_box_wrraper'; } do_action ("wcfm_add_membership_custom_css_class_name",$wcfm_membership);?>">
line 200:
<div class="wcfm_membership_box <?php if( $wcfm_membership_id == $featured_membership ) { echo 'wcfm_featured_membership_box'; } elseif( $wcfm_membership_id == $free_membership ) { echo 'wcfm_free_membership_box'; } do_action ("wcfm_add_membership_custom_css_class_name",$wcfm_membership); ?>">
add filter : line 245
$wcfmvm_feature_custom_object = apply_filters( 'wcfm_membership_feature_custom_object',$wcfm_membership->ID);
// add action 249
do_action ("wcfm_membership_feature_custom_action",$wcfm_membership->ID,$membership_feature_list, $wcfmvm_feature_custom_object);
// add action: line 251
do_action ("wcfm_membership_feature_custom_css_class_name",$wcfm_membership->ID,$membership_feature_list,$wcfmvm_feature_custom_object);
//like this
<div class="wcfm_membership_element <?php do_action ("wcfm_add_membership_feature_custom_css_class_name",$wcfm_membership->ID,$membership_feature_list,$wcfmvm_feature_custom_object);?>">
file: views/wcfmvm-view-memberships-manage.php:
line betwin 240-241
$wcfmvm_feature_custom_object = apply_filters( 'wcfm_add_membership_feature_custom_object',$membership_id);
line betwin 250-251
do_action ("wcfm_add_membership_feature_custom_css_class_name",$membership_id,$membership_feature_list,$wcfmvm_feature_custom_object);
- The topic ‘Add some Hooks’ is closed to new replies.