• Resolved Jon Fuller

    (@garconis)


    I was previously using this function to do stuff in my child theme:

    if ( ! function_exists( 'child_grid_styling_fix' ) ) {
    	add_action( 'us_before_template:templates/us_grid/listing', 'child_grid_styling_fix' );
    	function child_grid_styling_fix() {
    		if ( defined( 'AIOSEOPPRO' ) ) {
    			global $us_grid_layouts;
    			$us_grid_layouts = array();
    		}
    	}
    }

    But it no longer seems to work. Do you know what I need to use sin the if statement? I tried swapping AIOSEOPPRO with aioseo… but that didn’t seem to help make it work again.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author arnaudbroes

    (@arnaudbroes)

    Hey @garconis,

    Do you specifically need to check if the Pro version is active or can it be the free version as well?

    In case of the latter, you can do this –

    if ( defined( 'AIOSEO_VERSION' ) )

    In case of the former, do something like this –

    if ( function_exists( 'aioseo' ) && aioseo()->pro )

    – Arnaud

    Thread Starter Jon Fuller

    (@garconis)

    No, we don’t need to test for Pro version. I actually ended up using this instead, is this OK?

    if ( function_exists( 'aioseo' ) )

    Plugin Author arnaudbroes

    (@arnaudbroes)

    @garconis yep that should work!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘AIOSEOPPRO no longer works to check as defined?’ is closed to new replies.