AnsPress_Init::prevent_ext( boolean $ret, string $ext )

Description #

Prevent loading of previous extension.

Parameters #

  • $ret
    boolean (Required) Return.
  • $ext
    string (Required) Extension slug.

Source #

File: anspress-question-answer.php

		public static function prevent_ext( $ret, $ext ) {
			if ( in_array( $ext, [ 'categories-for-anspress', 'tags-for-anspress', 'anspress-email' ] ) ) {
				return false;
			}

			return $ret;
		}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment