-
Notifications
You must be signed in to change notification settings - Fork 32
/
wpadverts-snippets.php
43 lines (36 loc) · 1.39 KB
/
wpadverts-snippets.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/**
Plugin Name: WPAdverts Snippets
Version: 1.0
Author: Greg Winiarski
Description: This is collection of useful Adverts snippets.
*/
function wpadverts_snippet_run( $snippet ) {
$file = dirname( __FILE__ ) . "/$snippet/$snippet.php";
if( file_exists( $file ) ) {
include_once $file;
} else {
echo sprintf( '<div>Snippet <strong>%s</strong> does not exist.</div>', $snippet );
}
}
//define( "PRESELECT_AD_CATEGORY_USE_DTD", 1 );
//wpadverts_snippet_run('tim-custom-search');
//wpadverts_snippet_run('custom-taxonomies');
//wpadverts_snippet_run('dependant-taxonomy-dropdown');
//wpadverts_snippet_run('preselect-ad-category');
//wpadverts_snippet_run('anon-edit');
//wpadverts_snippet_run('search-by-price');
//wpadverts_snippet_run('cpt-caps');
//wpadverts_snippet_run( 'custom-fields-taxonomies' );
//wpadverts_snippet_run( 'change-author-avatar' );
//wpadverts_snippet_run( 'override-templates' );
//wpadverts_snippet_run( 'limit-user-active-listings' );
//wpadverts_snippet_run( 'enable-comments' );
//wpadverts_snippet_run( 'search-by-category' );
//wpadverts_snippet_run( 'preselect-ad-category' );
//wpadverts_snippet_run( 'honeypot' );
//wpadverts_snippet_run( 'timetrap' );
//wpadverts_snippet_run( 'change-author-details' );
//wpadverts_snippet_run( 'gallery-touch-support' );
//wpadverts_snippet_run( 'pvc-integration' );
wpadverts_snippet_run( 'demo-data' );