Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Trouble with custom activity function

@henrywright

Moderator

You could use a control statement inside my_func()? For ex:

if ( 'something' === 'something' ) {
    // Do something better than this...
    $ret['blah'] = 'blah';
}

The exact condition you use will depend on what you’re trying to do.

Skip to toolbar