1 | <?php |
||
14 | final class Ajax |
||
15 | { |
||
16 | use Singleton; |
||
17 | |||
18 | /** |
||
19 | * @traitDoc |
||
20 | */ |
||
21 | public function initializes() |
||
25 | |||
26 | /** |
||
27 | * All ajax action of this plugin come here |
||
28 | * |
||
29 | * @since 1.0.0 |
||
30 | * @return void |
||
31 | */ |
||
32 | public function hooks() { |
||
41 | |||
42 | /** |
||
43 | * Get related layout with post type value, related layout include taxonomies, image upload and image size |
||
44 | * |
||
45 | * @since 1.0.0 |
||
46 | * @return void |
||
47 | */ |
||
48 | public function get_related_layout() { |
||
52 | |||
53 | /** |
||
54 | * Get default layout of single dfi in admin |
||
55 | * |
||
56 | * @since 1.0.0 |
||
57 | * @return void |
||
58 | */ |
||
59 | public function get_default_layout() { |
||
63 | |||
64 | /** |
||
65 | * Ajax action to get all post types which support thumbnail feature |
||
66 | * |
||
67 | * @since 1.0.0 |
||
68 | * @return array |
||
69 | */ |
||
70 | public function get_post_types() { |
||
74 | |||
75 | /** |
||
76 | * Ajax action to get all terms by given taxonomy |
||
77 | * |
||
78 | * @since 1.0.0 |
||
79 | * @return array |
||
80 | */ |
||
81 | public function get_terms() { |
||
85 | |||
86 | |||
87 | public function generate_feature_image() { |
||
96 | } |