Osclass Documentation - Guides, Tutorials & Dev Resources
Hosting Forums Market
Osclass

Getting Started (5)

Config & Troubleshoot (15)

Administration (41)

Settings (11)

Tools (10)

Features (7)

Developer Guide (36)

Helper Functions (22)

Programming Standards

Theme Customization

Item Hooks & Variants on Publish Page

Query Items (custom listings select)

Hooks

Filters

Child Themes

Advanced Osclass Installation - Cloud, AWS, Ubuntu

User Image Uploader (avatar)

Emoji in Texts

Use Optimized Functions

Alpha & Beta Testing

Alert frequency buttons integration into theme

User Items Filter and Public Profile Filter Implementation

Release Notes (13)

  • Home
  • / Developer Guide

Developer Guide

A resource for developers looking to integrate and extend Osclass using custom development solutions.

Helper Functions

Explore essential developer tools, helpers - built-in functions, and resources to streamline your Osclass development.
22 articles

Programming Standards

Osclass PHP Coding Standards & Best Practices Following proper coding standards ensures better maintainability, security, and performance in Osclass development. Below is an improved guide based on best practices observed in the latest Osclass coding style. General Coding Conventions Function Na... 345 words
Developer Guide

Theme Customization

Today, we will take a look how simple are basic modifications of your Osclass theme, plugin or simply layout. We strongly recommend to check some CSS basics before you start with modifications. You may find CSS Cheat Sheet at bottom of this guide. What we are going to do today: Hide unwanted box Cha... 819 words
Developer Guide

Item Hooks & Variants on Publish Page

Item Publish & Edit Hook Variants - Osclass v8.2.0 introduced multiple category-based hooks for item publishing and editing pages, allowing for greater customization and flexibility. Previously, only one hook was available for these actions, limiting developers to a single injection point at the... 672 words
Developer Guide

Query Items (custom listings select)

Displaying Specific Listings Using osc_query_item() Osclass provides a powerful function osc_query_item($params) that allows developers to filter and display listings dynamically based on various criteria. This function supports **multiple filtering options** and can be used to fine-tune the selecti... 646 words
Developer Guide

Hooks

A hook is a small piece of code that allows you to insert more code (plugin) in the middle of certain Osclass’ actions. Usage of hooks To use a hook add the following code to your plugin file : osc_add_hook('hook_name', 'function_name', 'priority'); Substitute ‘hook_name’ by the name of the hook you... 2672 words
Developer Guide

Filters

A filter is functionality that allows to modify content of particular functions (price format, item title etc.). Function added to filter have 1 input parameter – content that can be modified. Function returns output as modified content. osc_add_filter('filter_name', 'function_name'); Example for fi... 2522 words
Developer Guide

Child Themes

Creating a Child Theme in Osclass A child theme in Osclass allows customization of a theme without modifying the original (parent) theme. This approach ensures that updates to the parent theme do not overwrite custom modifications. Child themes contain only the files that need modification, reducing... 660 words
Developer Guide

Advanced Osclass Installation - Cloud, AWS, Ubuntu

Introduction In this guide, we focus on advanced scenarios for installing Osclass. While a standard installation on shared hosting (or simple VPS) typically involves uploading files, creating a database, and running the web-based installer, large-scale or specialized environments (like cloud platfor... 1002 words
Developer Guide

User Image Uploader (avatar)

Integrating the User Image Uploader (Avatar) into the User Profile Osclass now includes a built-in profile (avatar) image uploader, removing the need for third-party plugins. However, many themes do not utilize this feature because they were developed before it was available. This guide will show yo... 811 words
Developer Guide

Emoji in Texts

Osclass 8.3 supports Emoji in textual fields, however for existing installation there may be action required on site owners. As it's not possible to automatically convert some tables charset to utf8mb4 due to foreign keys, it's manual process left to site owners. Procedure to convert tables 1. List ... 302 words
Developer Guide

Use Optimized Functions

Osclass 8.3 brings a lot of new functions including optimized data loader functions those avoid excessive and repetitive database queries and store them into session for possible repetitive use, sort or filter. Optimized Functions How it works? Let's analyze it: Problem: get list of available countr... 382 words
Developer Guide

Alpha & Beta Testing

When new Osclass version is close to release, Alpha or Beta testing may be available (follow forums for call on testing). Anyone can join testing and post feedback on forums. To join Alpha or Beta test, you just need to add new row to your config.php. Alpha testing: define('ALPHA_TEST', true); Beta ... 176 words
Developer Guide

Alert frequency buttons integration into theme

Osclass 8.3 brings possibility to select alerts (subscriptions) frequency. Available values are: Instant (using minutely cron) Hourly Daily Weekly To support this feature, place following code into your alert section: <?php echo osc_alert_change_frequency(osc_alert()); ?> Note that in some the... 331 words
Developer Guide

User Items Filter and Public Profile Filter Implementation

In this guide we will implement new Osclass 8.3 features - filters of listings in User Items page and Public Profile page. These filters allow users to quickly refine items in case there is many of them. User Items Filter Go to your theme folder, open user-items.php and place there (ideally above it... 764 words
Developer Guide
Company

Osclass Classifieds

Osclass Market
Information Osclass Classifieds
Copyright © 2026 Osclass Classifieds All rights reserved. Powered by Osclass Classified CMS.