Call to undefined function x_attr_class() error after updating to Cornerstone 6.0.8

Hey guys!

I have created some custom elements and I have just updated Cornerstone to version 6.0.8 but now I am getting this fatal error:

    Fatal error: Uncaught Error: Call to undefined function x_attr_class()

This is the line of code I have:

    $atts = cs_atts(array(
        'class'         => x_attr_class(array($style_id, 'my-custom-element', $class )),
        'id'            => $id
    ));

Please advise. Thank you!

Jade

Please disregard this. I checked the documentation and I switch the function to cs_attr_class.

Thanks!

Hi Jade,

Glad that you are able to find the solution.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.