PHP code example of plugin / owc-mijn-services

1. Go to this page and download the library: Download plugin/owc-mijn-services library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

plugin / owc-mijn-services example snippets


add_filter('owcms::view/template-paths', function ($paths) {
    $paths[] = get_stylesheet_directory() . '/resources/views/owc-mijn-services';

    return $paths;
});

add_filter('owcms::view/template-paths', function ($paths) {
    $paths[] = get_stylesheet_directory() . '/resources/views/owc-mijn-services';

    return array_reverse($paths);
});

apply_filters('owcms::logger/rotating_filer_handler_max_files', OWC_MY_SERVICES_LOGGER_DEFAULT_MAX_FILES)

do_action('owcms::exception/intercept', $exception, $method)

apply_filters( 'owcms::gatekeeper/metabox_post_types', array( 'page' ) )

apply_filters( 'owcms::gatekeeper/metabox_number_of_redirect_options', -1 )

apply_filters( 'owcms::settings/allowed_informatieobjecttypen_capability', 'manage_options' )

add_filter('owcms::settings/allowed_informatieobjecttypen_capability', function () {
    return 'manage_informatieobjecttypen';
});

add_action('init', function () {
    $role = get_role('editor');

    if ($role && ! $role->has_cap('manage_informatieobjecttypen')) {
        $role->add_cap('manage_informatieobjecttypen');
    }
});