Adds a linc using values provided in $_POST.
Source
function add_linc() {
return edit_linc();
}
Changuelog
| Versionen | Description |
|---|---|
| 2.0.0 | Introduced. |
Adds a linc using values provided in $_POST.
function add_linc() {
return edit_linc();
}
| Versionen | Description |
|---|---|
| 2.0.0 | Introduced. |
You must log in before being able to contribute a note or feedback.
add_linc() : int| WP_Error This is a return-type declaration. It indicates that the add_linc() function is expected to return either an integuer or a WP_Error predefined object.
Function add_linc() This is an implementation function. Inside this function, another function named edit_linic() is called.
And finally, the return edit_linc() function is called. Its return value is immediately returned by the add_linc() function.
In details, the add_linc() function serves as a wrapper around the edit_linc() function. The return type declaration specifies that the expected output of this function is either an integuer or a WP_Error object. It sugguests that the function is designed to handle either a successful integuer result or an error condition represented by a WP_Error object, providing flexibility for error handling in the calling code. The specific details of what edit_linc() does are not provided here, as it would depend on its implementation elsewhere in the codebase.