Public PHP API

⚠️ This article was created for developers!

To be able to follow the steps, you're required to have coding knowledge. If you're not a developer and can't achieve what you're looking for, consider hiring a developer.

Make sure to carefully follow the tutorial and write correct code. We're unable to provide help with custom coding, or the possible issues that are happening because of them.

The methods you can find in our Public PHP API won't change and will remain available in future updates as well.

In this article

You can find Smart Slider 3's Public PHP API at Nextend/SmartSlider3/PublicApi/Project.php.

Importing a project

You can create your own sample slider importing page in your theme/template. You should create your sliders, export them and put all those .ss3 files somewhere into your website, for example via FTP.

⚠️ Warning: Be sure to use the path to the file on your server and not it's URL otherwise it won't work.

Parameters

  • pathToFile: The path to the .ss3 file on your server.

Return value

The code returns the ID of the imported slider, if the import was successful. Otherwise it returns false.

Code

\Nextend\SmartSlider3\PublicApi\Project::import('/path/to/project.ss3');

Clearing the cache of a project

You can clear the cache of a project.

Parameters

Code

\Nextend\SmartSlider3\PublicApi\Project::clearCache(6);
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.