PHP & Hooks
Embedding from PHP, querying and managing projects, actions and filters, constants, and a project picker for your own plugin or theme.
- Embedding a project from PHPIn the PHP templates of your theme, you can print a project where it should appear, show it only on some pages, change its settings for that place, or get its HTML as a string.
- Querying projects in PHPIn the PHP code of a theme or a plugin, you can find one project by its ID or slug, or a list of projects filtered and sorted as you need, and count how many match.
- Actions and filtersWith LayerSlider’s actions and filters, your code can run when the plugin is installed, updated, loaded, or deleted, and can change a project’s settings, HTML, and script before they reach the page.
- What’s changed for developers in LayerSlider 9LayerSlider 9 needs newer PHP and WordPress, loads projects far down a page later, and drops the Transition Builder and a few settings. Old hooks and commands remain, and a few are new.