| @@ 121-133 (lines=13) @@ | ||
| 118 | add_filter( 'members_get_capabilities', array( $this, 'get_capabilities' ) ); |
|
| 119 | } |
|
| 120 | ||
| 121 | public function get_capabilities( $caps ) { |
|
| 122 | $caps = array_merge( $caps, array( |
|
| 123 | 'edit_' . $this->capability_type, |
|
| 124 | 'read_' . $this->capability_type, |
|
| 125 | 'delete_' . $this->capability_type, |
|
| 126 | 'edit_' . $this->capability_type . 's', |
|
| 127 | 'edit_others_' . $this->capability_type . 's', |
|
| 128 | 'publish_' . $this->capability_type . 's', |
|
| 129 | 'read_private_' . $this->capability_type . 's', |
|
| 130 | 'edit_' . $this->capability_type . 's', |
|
| 131 | ) ); |
|
| 132 | return $caps; |
|
| 133 | } |
|
| 134 | ||
| 135 | /** |
|
| 136 | * Pod Page Content Shortcode support for use anywhere that supports WP Shortcodes |
|
| @@ 119-131 (lines=13) @@ | ||
| 116 | add_filter( 'members_get_capabilities', array( $this, 'get_capabilities' ) ); |
|
| 117 | } |
|
| 118 | ||
| 119 | public function get_capabilities( $caps ) { |
|
| 120 | $caps = array_merge( $caps, array( |
|
| 121 | 'edit_' . $this->capability_type, |
|
| 122 | 'read_' . $this->capability_type, |
|
| 123 | 'delete_' . $this->capability_type, |
|
| 124 | 'edit_' . $this->capability_type . 's', |
|
| 125 | 'edit_others_' . $this->capability_type . 's', |
|
| 126 | 'publish_' . $this->capability_type . 's', |
|
| 127 | 'read_private_' . $this->capability_type . 's', |
|
| 128 | 'edit_' . $this->capability_type . 's', |
|
| 129 | ) ); |
|
| 130 | return $caps; |
|
| 131 | } |
|
| 132 | ||
| 133 | public function disable_builder_layout ( $post_types ) { |
|
| 134 | $post_types[] = $this->object_type; |
|