OptionsPageManager Class


Properties #

This class has no properties set.

Methods #

setup() #

savePost( $postId, $post, $update ) #

Callback for the save_post action. Saves Options Page data to JSON and sets the WP post title from meta field.

registerOptionsPages() #

loadDataFile( $filename ) #

initObject( $data ) #

Initializes a OptionsPage object from a JSON data set.

getDataFiles() #

Public. Wrapper around protected method findDataFiles() for public access.

fetchByKey( $key ) #

Fetch a single Options Page from the database via it's unique key. Used to check for the existence of a given Options Page during import operations.

findDataFiles() #

Reads the Options Page data directory where JSON files are stored and returns a list of all data files.

Powered by BetterDocs

Leave a Reply