MPCEObject Class

MPCEObject Class description:

id
(string) The $id should match with your shortcode tag name add_shortcode(‘service’, ‘serviceShortcode’);.
Default: null

name
(string) It specifies the name of the object in the MotoPress Editor left panel.
Default: null

icon
(string) It sets the icon for your object in MotoPress editor left panel. You should point the path to the object icon from wp-content folder.
Default: no-object.png

parameters
(array) The quantity of array elements with parameters where keys are your shortcode attributes icon, title, description Default: array()

position
(int) It defines the position according to other objects of the group.
Default: 0

closeType
(string) The value of this parameter should be one of these constants
MPCEObject::SELF_CLOSED,
MPCEObject::ENCLOSED.
Get more information about closeType
Default: MPCEObject::SELF_CLOSED

resize
(string) It is allowed to change only width of object by default. The value of this parameter should be one of these constants
MPCEObject::RESIZE_NONE,
MPCEObject::RESIZE_HORIZONTAL,
MPCEObject::RESIZE_VERTICAL,
MPCEObject::RESIZE_ALL.
Default: MPCEObject::RESIZE_HORIZONTAL

show
(booalen) It defines whether to show object in MotoPress editor or not.
Default: true

Related Topics

Leave a Reply

Your email address will not be published. Required fields are marked *