ile-text"> 3395 058f31828c first commit 1 年之前 3429 058f31828c first commit 1 年之前 3430 058f31828c first commit 1 年之前 3431 058f31828c first commit 1 年之前 3433 058f31828c first commit 1 年之前 3439 058f31828c first commit 1 年之前 3440 058f31828c first commit 1 年之前 3455 058f31828c first commit 1 年之前 3456 058f31828c first commit 1 年之前 3456_fsm 058f31828c first commit 1 年之前 3456_vm 058f31828c first commit 1 年之前 3466 058f31828c first commit 1 年之前 3467 058f31828c first commit 1 年之前 3468 058f31828c first commit 1 年之前 3501 058f31828c first commit 1 年之前 3502 058f31828c first commit 1 年之前 3503 058f31828c first commit 1 年之前 3534 058f31828c first commit 1 年之前 3541 058f31828c first commit 1 年之前 3541_fsm 058f31828c first commit 1 年之前 3541_vm 058f31828c first commit 1 年之前 3542 058f31828c first commit 1 年之前 3574 058f31828c first commit 1 年之前 3575 058f31828c first commit 1 年之前 3576 058f31828c first commit 1 年之前 3596 058f31828c first commit 1 年之前 3597 058f31828c first commit 1 年之前 3598 058f31828c first commit 1 年之前 3599 058f31828c first commit 1 年之前 3600 058f31828c first commit 1 年之前 3600_fsm 058f31828c first commit 1 年之前 3600_vm 058f31828c first commit 1 年之前 3601 058f31828c first commit 1 年之前 3601_fsm 058f31828c first commit 1 年之前 3601_vm 058f31828c first commit 1 年之前 3602 058f31828c first commit 1 年之前 3602_fsm 058f31828c first commit 1 年之前 3602_vm 058f31828c first commit 1 年之前 3603 058f31828c first commit 1 年之前 3603_fsm 058f31828c first commit 1 年之前 3603_vm 058f31828c first commit 1 年之前 3604 058f31828c first commit 1 年之前 3605 058f31828c first commit 1 年之前 3606 058f31828c first commit 1 年之前 3607 058f31828c first commit 1 年之前 3608 058f31828c first commit 1 年之前 3609 058f31828c first commit 1 年之前 3712 058f31828c first commit 1 年之前 3764 058f31828c first commit 1 年之前 3764_fsm 058f31828c first commit 1 年之前 3764_vm 058f31828c first commit 1 年之前 3766 058f31828c first commit 1 年之前 3767 058f31828c first commit 1 年之前 3997 058f31828c first commit 1 年之前 4143 058f31828c first commit 1 年之前 4144 058f31828c first commit 1 年之前 4145 058f31828c first commit 1 年之前 4146 058f31828c first commit 1 年之前 4147 058f31828c first commit 1 年之前 4148 058f31828c first commit 1 年之前 4149 058f31828c first commit 1 年之前 4150 058f31828c first commit 1 年之前 4151 058f31828c first commit 1 年之前 4152 058f31828c first commit 1 年之前 4153 058f31828c first commit 1 年之前 4154 058f31828c first commit 1 年之前 4155 058f31828c first commit 1 年之前 4156 058f31828c first commit 1 年之前 4157 058f31828c first commit 1 年之前 4158 058f31828c first commit 1 年之前 4159 058f31828c first commit 1 年之前 4160 058f31828c first commit 1 年之前 4161 058f31828c first commit 1 年之前 4162 058f31828c first commit 1 年之前 4163 058f31828c first commit 1 年之前 4164 058f31828c first commit 1 年之前 4165 058f31828c first commit 1 年之前 4166 058f31828c first commit 1 年之前 4167 058f31828c first commit 1 年之前 4168 058f31828c first commit 1 年之前 4169 058f31828c first commit 1 年之前 4170 058f31828c first commit 1 年之前 4171 058f31828c first commit 1 年之前 4172 058f31828c first commit 1 年之前 4173 058f31828c first commit 1 年之前 4174 058f31828c first commit 1 年之前 5002 058f31828c first commit 1 年之前 548 058f31828c first commit 1 年之前 549 058f31828c first commit 1 年之前 6102 058f31828c first commit 1 年之前 6104 058f31828c first commit 1 年之前 6106 058f31828c first commit 1 年之前 6110 058f31828c first commit 1 年之前 6111 058f31828c first commit 1 年之前 6112 058f31828c first commit 1 年之前 6113 058f31828c first commit 1 年之前 6117 058f31828c first commit 1 年之前 826 058f31828c first commit 1 年之前 827 058f31828c first commit 1 年之前 828 058f31828c first commit 1 年之前 PG_VERSION 058f31828c first commit 1 年之前 pg_filenode.map 058f31828c first commit 1 年之前 tum/whitesports - Gogs: Simplico Git Service

Нема описа

class-wc-integrations.php 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?php
  2. /**
  3. * WooCommerce Integrations class
  4. *
  5. * Loads Integrations into WooCommerce.
  6. *
  7. * @version 3.9.0
  8. * @package WooCommerce\Classes\Integrations
  9. */
  10. defined( 'ABSPATH' ) || exit;
  11. /**
  12. * Integrations class.
  13. */
  14. class WC_Integrations {
  15. /**
  16. * Array of integrations.
  17. *
  18. * @var array
  19. */
  20. public $integrations = array();
  21. /**
  22. * Initialize integrations.
  23. */
  24. public function __construct() {
  25. do_action( 'woocommerce_integrations_init' );
  26. $load_integrations = array(
  27. 'WC_Integration_MaxMind_Geolocation',
  28. );
  29. $load_integrations = apply_filters( 'woocommerce_integrations', $load_integrations );
  30. // Load integration classes.
  31. foreach ( $load_integrations as $integration ) {
  32. $load_integration = new $integration();
  33. $this->integrations[ $load_integration->id ] = $load_integration;
  34. }
  35. }
  36. /**
  37. * Return loaded integrations.
  38. *
  39. * @return array
  40. */
  41. public function get_integrations() {
  42. return $this->integrations;
  43. }
  44. /**
  45. * Return a desired integration.
  46. *
  47. * @since 3.9.0
  48. * @param string $id The id of the integration to get.
  49. * @return mixed|null The integration if one is found, otherwise null.
  50. */
  51. public function get_integration( $id ) {
  52. if ( isset( $this->integrations[ $id ] ) ) {
  53. return $this->integrations[ $id ];
  54. }
  55. return null;
  56. }
  57. }