Exclude WordPress and WooCommerce variables from camel case conversion
[MAILPOET-1796]
This commit is contained in:
@ -40,7 +40,7 @@ class PostNotificationScheduler {
|
||||
]
|
||||
);
|
||||
$types = Posts::getTypes();
|
||||
if (($newStatus !== 'publish') || !isset($types[$post->postType])) {
|
||||
if (($newStatus !== 'publish') || !isset($types[$post->post_type])) { // phpcs:ignore Squiz.NamingConventions.ValidVariableName.NotCamelCaps
|
||||
return;
|
||||
}
|
||||
$this->schedulePostNotification($post->ID);
|
||||
|
Reference in New Issue
Block a user