I am still searching for the “right” coding standards in Advanced Ads that is consistant as well as easy to implement and understand. However, a few things are settled. You can remind me in case I “forget” something I said here in my code or use it inconsistantly.

Naming Conventions

public functions

start with prefix advads_


start with prefix Advads_


lower case letters with readable words and underscores between them, e.g. class_ad_object.php

html/css identifiers

e.g. classes and ids

lower case and hyphens, e.g. advads-metabox


lower case with hyphens and prefix advanced-ads-