Hooks - PHP

Below you'll find a list of all available PHP hooks that can be used to extend or adjust the functionality of the plugin.

settings

This filter allows you to adjust the settings of the plugin.

functions.php

            add_filter('sleekMotion/settings', function($settings) {
      $settings['breakpoints'][] = [
        'name'  => 'tablet',
        'value' => '(min-width: 768px)',
      ];

      return $settings;
    });

      
Copy