This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function my1_pmpro_level_cost_text($text, $level) { | |
// is livel is free do nothing | |
if (pmpro_isLevelFree($level)) { | |
return ""; | |
// else is different to free do this | |
} else { | |
//the full string is : The price for membership is $0.00 now. | |
$restituisci = str_replace("now.","",$text); // in this case you can remove "now." in the full string | |
return $restituisci; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Age Calculator: =DATEDIF(M2,TODAY(),"Y") & " Years, " & DATEDIF(M2,TODAY(),"YM") & " Months, " & DATEDIF(M2,TODAY(),"MD") & " Days" | |
=DATEDIF(M2,N2,"YM") & " Months, " & DATEDIF(M2,N2,"MD") & " Days" | |
Only Month | |
=DATEDIF(A2,B2,"M") [1st is small, 2nd is large Date] | |
Only Year | |
=DATEDIF(A2,B2,"Y") [1st is small, 2nd is large Date] | |
2. Count: | |
a. Counting Specific name: =COUNTIF(F2:F10, "MISSED") |