1st commit for "Integration Event-Specs to Equations"
This commit is contained in:
@@ -1292,6 +1292,9 @@ if ( !function_exists( 'sp_get_eos_safe_slug' ) ) {
|
||||
if ( !function_exists( 'sp_solve' ) ) {
|
||||
function sp_solve( $equation, $vars, $precision = 0, $default = 0 ) {
|
||||
|
||||
// Add a hook to alter $equation
|
||||
$equation = apply_filters( 'sportspress_equation_alter', $equation, $vars );
|
||||
|
||||
if ( $equation == null )
|
||||
return $default;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user