src/includes/classes/hook/arg.php 1 location
|
@@ 71-75 (lines=5) @@
|
68 |
|
|
69 |
|
$parts = explode( ':', $slug, 2 ); |
70 |
|
|
71 |
|
if ( isset( $parts[1] ) ) { |
72 |
|
$this->entity_slug = $parts[1]; |
73 |
|
} else { |
74 |
|
$this->entity_slug = $slug; |
75 |
|
} |
76 |
|
} |
77 |
|
|
78 |
|
/** |
src/includes/classes/hook/event/dynamic.php 1 location
|
@@ 51-55 (lines=5) @@
|
48 |
|
|
49 |
|
$parts = explode( '\\', $this->slug, 2 ); |
50 |
|
|
51 |
|
if ( isset( $parts[1] ) ) { |
52 |
|
$entity_slug = "{$this->generic_entity_slug}\\{$parts[1]}"; |
53 |
|
} else { |
54 |
|
$entity_slug = $this->generic_entity_slug; |
55 |
|
} |
56 |
|
|
57 |
|
$entity = wordpoints_entities()->get( $entity_slug ); |
58 |
|
|