Skip to content

Commit

Permalink
getParam() fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hokoo committed Oct 25, 2021
1 parent d905f2a commit ab5e354
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wpPostAbleTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ private function doActionRef( string $actionName, $data ){

protected function getParam( string $param ) {
$data = json_decode( $this->post->post_content_filtered );
return $data[ $param ] ?? null;
return $data->$param ?? null;
}

protected function setParam( string $param, $value ) {
Expand Down

0 comments on commit ab5e354

Please sign in to comment.