PHP code example of tombroucke / otomaties-jobs

1. Go to this page and download the library: Download tombroucke/otomaties-jobs 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/ */

    

tombroucke / otomaties-jobs example snippets


add_filter('otomaties_jobs_job_content_allowed_html', function ($allowedHtml) {
    foreach ($allowedHtml as $key => $value) {
        $allowedHtml[$key]['class'] = [];
    }
    return $allowedHtml;
});

add_filter('otomaties_jobs_job_content_allowed_html', function (){
    global $allowedposttags;
    return $allowedposttags;
});

add_filter('otomaties_jobs_job_content_allowed_html', function ($allowedHtml) {
    $allowedHtml['svg'] = ['class' => [], 'xmlns' => [], 'viewbox' => [], 'fill' => []];
    $allowedHtml['path'] = ['d' => [], 'fill' => []];
	$allowedHtml['circle'] = ['cx' => [], 'cy' => [], 'r' => []];
    return $allowedHtml;
});