Plugin Directory

Changeset 1210903


Ignore:
Timestamp:
08/01/2015 10:20:29 AM (11 years ago)
Author:
dimitrov.adrian
Message:

Fix code snippet in readme.txt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scifi-task-manager/trunk/readme.txt

    r1210902 r1210903  
    3131
    3232*Simple example*
    33 ```
    34 add_filter('scifi-task-manager-priorities', function($priorities) {
    35 
    36 
    37   // Add custom priority.
    38   $priorities[99] = array(
    39 
    40     // Label of the priority
    41     'label' => 'Very very critical',
    42 
    43     // Color code
    44     'color' => '#ff0000',
    45   );
    46 
    47 
    48   // Remove status.
    49   unset($priorities[75]);
    50 
    51   return $priorities;
    52 });
    53 ```
     33`add_filter('scifi-task-manager-priorities', function($priorities) {
     34`
     35`
     36`  // Add custom priority.
     37`  $priorities[99] = array(
     38`
     39`    // Label of the priority
     40`    'label' => 'Very very critical',
     41`
     42`    // Color code
     43`    'color' => '#ff0000',
     44`  );
     45`
     46`
     47`  // Remove status.
     48`  unset($priorities[75]);
     49`
     50`  return $priorities;
     51`});
    5452
    5553
Note: See TracChangeset for help on using the changeset viewer.