PluginProbe
Packeta / 1.4.2
Packeta v1.4.2
2.3.2 2.3.1 trunk 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.3.0 1.3.1 1.3.2 1.4 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 All 56 releases
packeta / src / Packetery / Module / Options / Repository.php

Repository.php in Packeta 1.4.2, at src/Packetery/Module/Options/Repository.php

31 lines 487 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Class Repository.
4 *
5 * @package Packetery\Module\Options
6 */
7
8 declare( strict_types=1 );
9
10 namespace Packetery\Module\Options;
11
12 /**
13 * Class Repository.
14 *
15 * @package Packetery\Module\Options
16 */
17 class Repository {
18
19 /**
20 * Get all packetery related options.
21 *
22 * @return array|object|null
23 */
24 public function getPluginOptions() {
25 global $wpdb;
26
27 return $wpdb->get_results( "SELECT `option_name` FROM $wpdb->options WHERE `option_name` LIKE 'packetery%'" );
28 }
29
30 }
31