/** * Get a personalized name or description for this subscription (used by email bodies). * * @param string $property Of plan: e.g. 'email...body' OR Text * @param boolean $html TRUE: HTML output, FALSE: text output * @param boolean $runContentPluginsIfAllowedByPlan DEFAULT: TRUE * @param array|null $extraStrings If needed, more strings * @param boolean $isPropretyAndNotText (optional) TRUE: it's a plan proprety FALSE: $proprety is a string and not a proprety * @return string */ public function getPersonalized( $property, $html, $runContentPluginsIfAllowedByPlan = true, $extraStrings = null, $isPropretyAndNotText = true ) { $substitutionStrings = $this->substitutionStrings( $html, $runContentPluginsIfAllowedByPlan ); if ( $extraStrings ) { $substitutionStrings = array_merge( $substitutionStrings, $extraStrings ); } return CBPTXT::replaceUserVars( $isPropretyAndNotText ? $this->getPlanAttribute( $property ) : $property, $this->user_id, $html, true, $runContentPluginsIfAllowedByPlan && $this->getPlanAttribute( 'runcontentplugins' ), $substitutionStrings ); }