ap_addon_has_options( string $file )
Description #
Check if addon has options.
Parameters #
- $filestring (Required) Addon main file.
Source #
File: includes/functions.php
function ap_addon_has_options( $file ) {
$addon = ap_get_addon( $file );
$form_name = str_replace( '.php', '', $addon['id'] );
$form_name = str_replace( '/', '_', $form_name );
if ( anspress()->form_exists( 'addon-' . $form_name ) ) {
return true;
}
return false;
}
Expand full source code Collapse full source code View on GitHub: includes/functions.php:1871
Add your comment